diff --git a/src/common/cmdline.c b/src/common/cmdline.c index 597f3778f..58be881db 100644 --- a/src/common/cmdline.c +++ b/src/common/cmdline.c @@ -170,7 +170,7 @@ static void ExpandFile (CmdLine* L, const char* Name) -void InitCmdLine (unsigned* aArgCount, char** aArgVec[], const char* aProgName) +void InitCmdLine (int* aArgCount, char** aArgVec[], const char* aProgName) /* Initialize command line parsing. aArgVec is the argument array terminated by * a NULL pointer (as usual), ArgCount is the number of valid arguments in the * array. Both arguments are remembered in static storage. @@ -180,7 +180,7 @@ void InitCmdLine (unsigned* aArgCount, char** aArgVec[], const char* aProgName) unsigned I; /* Get the program name from argv[0] but strip a path */ - if (*(aArgVec)[0] == 0) { + if (*(aArgVec)[0] == 0) { /* Use the default name given */ ProgName = aProgName; } else { diff --git a/src/common/cmdline.h b/src/common/cmdline.h index ce8f1e1ba..97f27924e 100644 --- a/src/common/cmdline.h +++ b/src/common/cmdline.h @@ -71,7 +71,7 @@ struct LongOpt { -void InitCmdLine (unsigned* aArgCount, char** aArgVec[], const char* aProgName); +void InitCmdLine (int* aArgCount, char** aArgVec[], const char* aProgName); /* Initialize command line parsing. aArgVec is the argument array terminated by * a NULL pointer (as usual), ArgCount is the number of valid arguments in the * array. Both arguments are remembered in static storage.