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:
imp 2008-06-02 04:50:47 +00:00
parent 2d5df8d9da
commit b3629efe71

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;