public inbox for newlib-cvs@sourceware.org
help / color / mirror / Atom feed
* [newlib-cygwin/topic/posix_acl_funcs] Change if_nameindex() to use unsigned int i variable.
@ 2016-02-08 14:54 Corinna Vinschen
0 siblings, 0 replies; only message in thread
From: Corinna Vinschen @ 2016-02-08 14:54 UTC (permalink / raw)
To: newlib-cvs
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=c2a27453c6e6e506e75795954b8dda12a225f9cd
commit c2a27453c6e6e506e75795954b8dda12a225f9cd
Author: Jeff Johnston <jjohnstn@redhat.com>
Date: Thu Feb 4 13:30:14 2016 -0500
Change if_nameindex() to use unsigned int i variable.
- i variable used in loop that shifts to right so use
unsigned int instead
Diff:
---
newlib/libc/sys/linux/net/ifname.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
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;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2016-02-08 14:54 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-08 14:54 [newlib-cygwin/topic/posix_acl_funcs] Change if_nameindex() to use unsigned int i variable Corinna Vinschen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).