diff options
author | cognet <cognet@FreeBSD.org> | 2008-08-01 13:12:06 +0000 |
---|---|---|
committer | cognet <cognet@FreeBSD.org> | 2008-08-01 13:12:06 +0000 |
commit | f4a5667e9f0a28e1ad7104584b801dbd153d9c84 (patch) | |
tree | 1af5aa69f31f05e04d0584c741fb789efee3a534 /usr.sbin | |
parent | 578ceaf233c4ecdeda9f9191840c28bd160d9f7b (diff) | |
download | FreeBSD-src-f4a5667e9f0a28e1ad7104584b801dbd153d9c84.zip FreeBSD-src-f4a5667e9f0a28e1ad7104584b801dbd153d9c84.tar.gz |
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
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/bootparamd/bootparamd/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/bootparamd/bootparamd/main.c b/usr.sbin/bootparamd/bootparamd/main.c index 87b8f96..38ef356 100644 --- a/usr.sbin/bootparamd/bootparamd/main.c +++ b/usr.sbin/bootparamd/bootparamd/main.c @@ -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; |