mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 12:28:52 +00:00
fix const warnings
In particular, in passing argv around as a "const char * const *" instead of a "const char *".
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user