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:
Dmitry Podgorny
2020-05-29 21:07:44 +03:00
parent 192273ffae
commit d080e6e7dd

View File

@@ -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;