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:
parent
e0c758686c
commit
9ccde11826
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user