diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2016-02-04 13:30:14 -0500 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2016-02-04 13:30:14 -0500 |
commit | c2a27453c6e6e506e75795954b8dda12a225f9cd (patch) | |
tree | 74adf11566424b064844c6eb4c2386dc99157f00 | |
parent | ba4433e47fd8859e8f65775497ab17aba12fcb33 (diff) | |
download | newlib-c2a27453c6e6e506e75795954b8dda12a225f9cd.zip newlib-c2a27453c6e6e506e75795954b8dda12a225f9cd.tar.gz newlib-c2a27453c6e6e506e75795954b8dda12a225f9cd.tar.bz2 |
Change if_nameindex() to use unsigned int i variable.
- i variable used in loop that shifts to right so use
unsigned int instead
-rw-r--r-- | newlib/libc/sys/linux/net/ifname.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/newlib/libc/sys/linux/net/ifname.c b/newlib/libc/sys/linux/net/ifname.c index b7975bc..d2609b1 100644 --- a/newlib/libc/sys/linux/net/ifname.c +++ b/newlib/libc/sys/linux/net/ifname.c @@ -125,7 +125,8 @@ struct if_nameindex * if_nameindex() { size_t needed; - int mib[6], i, ifn = 0, off = 0, hlen; + int mib[6], ifn = 0, off = 0, hlen; + unsigned int i; char *buf = NULL, *lim, *next, *cp, *ifbuf = NULL; struct rt_msghdr *rtm; struct if_msghdr *ifm; |