getopt returns an int, not a char, so use the correct data type for

the return value. Fixes powerpc tinderbox.

MFC after:	2 days
This commit is contained in:
Scott Long 2013-12-30 16:49:31 +00:00
parent e0c758686c
commit 9ccde11826

View File

@ -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) {