From f4a5667e9f0a28e1ad7104584b801dbd153d9c84 Mon Sep 17 00:00:00 2001 From: cognet Date: Fri, 1 Aug 2008 13:12:06 +0000 Subject: 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 --- usr.sbin/bootparamd/bootparamd/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.sbin/bootparamd/bootparamd') 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; -- cgit v1.1