Char is unsigned on arm, so is not suitable to store the return value of
getopt(). Use an int instead. Submitted by: Matthew Luckie MFC after: 3 days
This commit is contained in:
parent
7b030859af
commit
2b686a3f45
@ -47,10 +47,10 @@ char **argv;
|
||||
SVCXPRT *transp;
|
||||
struct hostent *he;
|
||||
struct stat buf;
|
||||
char c;
|
||||
int c;
|
||||
|
||||
while ((c = getopt(argc, argv,"dsr:f:")) != -1)
|
||||
switch (c) {
|
||||
switch ((char)c) {
|
||||
case 'd':
|
||||
debug = 1;
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user