ipx_interface: getopt() returns int
On arm64 board loop with getopt() runs infinitely when returned value is checked as 'char'. Convert it to int, so -1 is handled properly.
This commit is contained in:
@@ -76,7 +76,7 @@ ipx_add_interface(int argc, char **argv)
|
||||
unsigned long netnum;
|
||||
char errmsg[80];
|
||||
int i, fti = 0;
|
||||
char c;
|
||||
int c;
|
||||
|
||||
sipx->sipx_special = IPX_SPECIAL_NONE;
|
||||
sipx->sipx_network = 0L;
|
||||
|
||||
Reference in New Issue
Block a user