summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bootparamd/bootparamd
diff options
context:
space:
mode:
authorcognet <cognet@FreeBSD.org>2008-08-01 13:12:06 +0000
committercognet <cognet@FreeBSD.org>2008-08-01 13:12:06 +0000
commitf4a5667e9f0a28e1ad7104584b801dbd153d9c84 (patch)
tree1af5aa69f31f05e04d0584c741fb789efee3a534 /usr.sbin/bootparamd/bootparamd
parent578ceaf233c4ecdeda9f9191840c28bd160d9f7b (diff)
downloadFreeBSD-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/bootparamd/bootparamd')
-rw-r--r--usr.sbin/bootparamd/bootparamd/main.c4
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;
OpenPOWER on IntegriCloud