From a1d41bb3855f3175f1a54c79601c526d323c2beb Mon Sep 17 00:00:00 2001 From: Elliot Lee Date: Mon, 21 Dec 1998 21:27:01 +0000 Subject: [PATCH] now compiles. sorry about that. --- src/popt.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/popt.c b/src/popt.c index fb03515a2..0e425ffd4 100644 --- a/src/popt.c +++ b/src/popt.c @@ -50,7 +50,7 @@ static void invokeCallbacks(poptContext con, while (opt->longName || opt->shortName || opt->arg) { if ((opt->argInfo & POPT_ARG_MASK) == POPT_ARG_INCLUDE_TABLE) { - invokeCallbacks(con, opt->arg, post); + invokeCallbacks(con, 0, opt->arg, post); } else if (((opt->argInfo & POPT_ARG_MASK) == POPT_ARG_CALLBACK) && ((!post && (opt->argInfo & POPT_CBFLAG_PRE)) || ( post && (opt->argInfo & POPT_CBFLAG_POST)))) { @@ -88,7 +88,7 @@ poptContext poptGetContext(char * name, int argc, char ** argv, if (name) con->appName = strcpy(malloc(strlen(name) + 1), name); - invokeCallbacks(con, con->options, 0); + invokeCallbacks(con, 0, con->options, 0); return con; } @@ -292,7 +292,7 @@ int poptGetNextOpt(poptContext con) { && con->os > con->optionStack) con->os--; if (!con->os->nextCharArg && con->os->next == con->os->argc) { - invokeCallbacks(con, con->options, 1); + invokeCallbacks(con, 0, con->options, 1); if (con->doExec) execCommand(con); return -1; }