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
2d5df8d9da
commit
b3629efe71
@ -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