svn commit: r260087 - head/sbin/camcontrol
Scott Long
scottl at FreeBSD.org
Mon Dec 30 16:49:31 UTC 2013
Author: scottl
Date: Mon Dec 30 16:49:31 2013
New Revision: 260087
URL: http://svnweb.freebsd.org/changeset/base/260087
Log:
getopt returns an int, not a char, so use the correct data type for
the return value. Fixes powerpc tinderbox.
MFC after: 2 days
Modified:
head/sbin/camcontrol/camcontrol.c
Modified: head/sbin/camcontrol/camcontrol.c
==============================================================================
--- head/sbin/camcontrol/camcontrol.c Mon Dec 30 16:46:50 2013 (r260086)
+++ head/sbin/camcontrol/camcontrol.c Mon Dec 30 16:49:31 2013 (r260087)
@@ -420,7 +420,7 @@ getdevtree(int argc, char **argv, char *
int error = 0;
int skip_device = 0;
int busonly = 0;
- char c;
+ int c;
while ((c = getopt(argc, argv, combinedopt)) != -1) {
switch(c) {
More information about the svn-src-head
mailing list