Warning fixes
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@132 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
parent
891c3dbf88
commit
ee712b8b25
|
@ -484,7 +484,7 @@ _getopt_internal (argc, argv, optstring, longopts, longind, long_only)
|
||||||
const struct option *pfound = NULL;
|
const struct option *pfound = NULL;
|
||||||
int exact = 0;
|
int exact = 0;
|
||||||
int ambig = 0;
|
int ambig = 0;
|
||||||
int indfound;
|
int indfound = 0;
|
||||||
int option_index;
|
int option_index;
|
||||||
|
|
||||||
for (nameend = nextchar; *nameend && *nameend != '='; nameend++)
|
for (nameend = nextchar; *nameend && *nameend != '='; nameend++)
|
||||||
|
@ -537,17 +537,17 @@ _getopt_internal (argc, argv, optstring, longopts, longind, long_only)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (opterr)
|
if (opterr)
|
||||||
if (argv[optind - 1][1] == '-')
|
if (argv[optind - 1][1] == '-') {
|
||||||
/* --option */
|
/* --option */
|
||||||
fprintf (stderr,
|
fprintf (stderr,
|
||||||
gettext ("%s: option `--%s' doesn't allow an argument\n"),
|
gettext ("%s: option `--%s' doesn't allow an argument\n"),
|
||||||
argv[0], pfound->name);
|
argv[0], pfound->name);
|
||||||
else
|
} else {
|
||||||
/* +option or -option */
|
/* +option or -option */
|
||||||
fprintf (stderr,
|
fprintf (stderr,
|
||||||
gettext ("%s: option `%c%s' doesn't allow an argument\n"),
|
gettext ("%s: option `%c%s' doesn't allow an argument\n"),
|
||||||
argv[0], argv[optind - 1][0], pfound->name);
|
argv[0], argv[optind - 1][0], pfound->name);
|
||||||
|
}
|
||||||
nextchar += strlen (nextchar);
|
nextchar += strlen (nextchar);
|
||||||
return '?';
|
return '?';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue