getopt returns an int, not a char. Make sure that we store the

variable in an int to avoid casting to an unsigned value which causes
the comparison with -1 to fail.

PR:		123807
Submitted by:	Matthew Luckie
Reviewed by:	keramida@
MFC after:	1 week
This commit is contained in:
Warner Losh 2008-06-02 04:50:47 +00:00
parent f791dd06c2
commit 047b4ae4cf

View File

@ -134,7 +134,7 @@ main(argc, argv)
struct nets *nt;
struct sockaddr_in server;
u_short port;
char c;
int c;
#ifdef lint
ntip = NULL;