Comparing ch != -1 when ch is of type char is no good idea.
Fix this for ports where char is unsigned by making ch an int. Pointed out by Matthias Pfaller.
This commit is contained in:
parent
f3590c636b
commit
7d77421729
@ -48,8 +48,8 @@ main(int argc, char **argv)
|
|||||||
extern int optind;
|
extern int optind;
|
||||||
int isdndev;
|
int isdndev;
|
||||||
int controller = -1;
|
int controller = -1;
|
||||||
int lflag, dflag, xflag, iflag, sflag, vflag, pthrou;
|
int lflag, dflag, xflag, iflag, sflag, vflag, pthrou, ch;
|
||||||
char *dnload = NULL, ch;
|
char *dnload = NULL;
|
||||||
|
|
||||||
pthrou = lflag = dflag = xflag = iflag = sflag = vflag = 0;
|
pthrou = lflag = dflag = xflag = iflag = sflag = vflag = 0;
|
||||||
while ((ch = getopt(argc, argv, "d:xsvlp")) != -1)
|
while ((ch = getopt(argc, argv, "d:xsvlp")) != -1)
|
||||||
|
Loading…
Reference in New Issue
Block a user