From: cuz Date: Thu, 11 Oct 2001 14:45:59 +0000 (+0000) Subject: Last change fixed the wrong parameter X-Git-Tag: V2.12.0~2560 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6a01347d6c0ada6233cba7c3c3524b71cb5f7f9f;p=cc65 Last change fixed the wrong parameter git-svn-id: svn://svn.cc65.org/cc65/trunk@1035 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/src/common/cmdline.c b/src/common/cmdline.c index 8d338028b..298ccb782 100644 --- a/src/common/cmdline.c +++ b/src/common/cmdline.c @@ -170,14 +170,14 @@ 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. */ { CmdLine L; - unsigned I; + int I; /* Get the program name from argv[0] but strip a path */ if (*(aArgVec)[0] == 0) { @@ -284,7 +284,7 @@ const char* GetArg (int* ArgNum, unsigned Len) -void LongOption (int* ArgNum, const LongOpt* OptTab, unsigned OptCount) +void LongOption (unsigned* ArgNum, const LongOpt* OptTab, unsigned OptCount) /* Handle a long command line option */ { /* Get the option and the argument (which may be zero) */ diff --git a/src/common/cmdline.h b/src/common/cmdline.h index ce8f1e1ba..87b7a67c0 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. @@ -82,7 +82,7 @@ void UnknownOption (const char* Opt) attribute ((noreturn)); void NeedArg (const char* Opt) attribute ((noreturn)); /* Print an error about a missing option argument and exit. */ - + void InvDef (const char* Def) attribute ((noreturn)); /* Print an error about an invalid definition and die */ @@ -91,7 +91,7 @@ const char* GetArg (int* ArgNum, unsigned Len); * option itself or may be separate. Len is the length of the option string. */ -void LongOption (int* ArgNum, const LongOpt* OptTab, unsigned OptCount); +void LongOption (unsigned* ArgNum, const LongOpt* OptTab, unsigned OptCount); /* Handle a long command line option */