diff options
author | scottl <scottl@FreeBSD.org> | 2013-12-30 16:49:31 +0000 |
---|---|---|
committer | scottl <scottl@FreeBSD.org> | 2013-12-30 16:49:31 +0000 |
commit | fc1c5282ff8142281e82d4757310ab01176cf70b (patch) | |
tree | 14d43e9d7554eca35db0b04843b3bcf83135b941 /sbin | |
parent | c8424575bd1191805fa8ab21850fd3826a675bc9 (diff) | |
download | FreeBSD-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')
-rw-r--r-- | sbin/camcontrol/camcontrol.c | 2 |
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) { |