summaryrefslogtreecommitdiffstats
path: root/sbin/camcontrol
diff options
context:
space:
mode:
authorscottl <scottl@FreeBSD.org>2013-12-30 16:49:31 +0000
committerscottl <scottl@FreeBSD.org>2013-12-30 16:49:31 +0000
commitfc1c5282ff8142281e82d4757310ab01176cf70b (patch)
tree14d43e9d7554eca35db0b04843b3bcf83135b941 /sbin/camcontrol
parentc8424575bd1191805fa8ab21850fd3826a675bc9 (diff)
downloadFreeBSD-src-fc1c5282ff8142281e82d4757310ab01176cf70b.zip
FreeBSD-src-fc1c5282ff8142281e82d4757310ab01176cf70b.tar.gz
getopt returns an int, not a char, so use the correct data type for
the return value. Fixes powerpc tinderbox. MFC after: 2 days
Diffstat (limited to 'sbin/camcontrol')
-rw-r--r--sbin/camcontrol/camcontrol.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/camcontrol/camcontrol.c b/sbin/camcontrol/camcontrol.c
index e96eb0d..16ff96d 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) {
OpenPOWER on IntegriCloud