Change if_nameindex() to use unsigned int i variable.
- i variable used in loop that shifts to right so use unsigned int instead
This commit is contained in:
parent
ba4433e47f
commit
c2a27453c6
@ -125,7 +125,8 @@ struct if_nameindex *
|
|||||||
if_nameindex()
|
if_nameindex()
|
||||||
{
|
{
|
||||||
size_t needed;
|
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;
|
char *buf = NULL, *lim, *next, *cp, *ifbuf = NULL;
|
||||||
struct rt_msghdr *rtm;
|
struct rt_msghdr *rtm;
|
||||||
struct if_msghdr *ifm;
|
struct if_msghdr *ifm;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user