fix const warnings

In particular, in passing argv around as a "const char * const *"
instead of a "const char *".
This commit is contained in:
Jordan Lee
2015-12-06 22:39:14 +00:00
parent 3d76f23b2b
commit 3ea43ba778
7 changed files with 15 additions and 15 deletions

View File

@@ -187,11 +187,11 @@ findOption (const tr_option * opts,
}
int
tr_getopt (const char * usage,
int argc,
const char ** argv,
const tr_option * opts,
const char ** setme_optarg)
tr_getopt (const char * usage,
int argc,
const char * const * argv,
const tr_option * opts,
const char ** setme_optarg)
{
int i;
const char * arg = NULL;