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:
Olivier Houchard 2008-08-01 13:12:06 +00:00
parent 7b030859af
commit 2b686a3f45
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=181125

View File

@ -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;