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:
parent
f791dd06c2
commit
047b4ae4cf
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user