From 9ccde1182634c8b60b93e3fbf6302e9ff6952a19 Mon Sep 17 00:00:00 2001 From: Scott Long Date: Mon, 30 Dec 2013 16:49:31 +0000 Subject: [PATCH] getopt returns an int, not a char, so use the correct data type for the return value. Fixes powerpc tinderbox. MFC after: 2 days --- sbin/camcontrol/camcontrol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbin/camcontrol/camcontrol.c b/sbin/camcontrol/camcontrol.c index e96eb0d033f6..16ff96d543b0 100644 --- a/sbin/camcontrol/camcontrol.c +++ b/sbin/camcontrol/camcontrol.c @@ -420,7 +420,7 @@ getdevtree(int argc, char **argv, char *combinedopt) int error = 0; int skip_device = 0; int busonly = 0; - char c; + int c; while ((c = getopt(argc, argv, combinedopt)) != -1) { switch(c) {