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:
martin 2001-01-15 09:26:15 +00:00
parent f3590c636b
commit 7d77421729

View File

@ -48,8 +48,8 @@ main(int argc, char **argv)
extern int optind;
int isdndev;
int controller = -1;
int lflag, dflag, xflag, iflag, sflag, vflag, pthrou;
char *dnload = NULL, ch;
int lflag, dflag, xflag, iflag, sflag, vflag, pthrou, ch;
char *dnload = NULL;
pthrou = lflag = dflag = xflag = iflag = sflag = vflag = 0;
while ((ch = getopt(argc, argv, "d:xsvlp")) != -1)