maximilian attems
2010-Nov-10 16:21 UTC
[klibc] [PATCH] ipconfig: parse_device nuke unused variable i
gets assigned a value without any further usage. Signed-off-by: maximilian attems <max at stro.at> --- usr/kinit/ipconfig/main.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/usr/kinit/ipconfig/main.c b/usr/kinit/ipconfig/main.c index b392e6a..d912f6d 100644 --- a/usr/kinit/ipconfig/main.c +++ b/usr/kinit/ipconfig/main.c @@ -484,7 +484,7 @@ static int add_all_devices(struct netdev *template); static int parse_device(struct netdev *dev, const char *ip) { char *cp; - int i, opt; + int opt; int is_ip = 0; dprintf("IP-Config: parse_device: \"%s\"\n", ip); @@ -506,7 +506,7 @@ static int parse_device(struct netdev *dev, const char *ip) dev->name = ip; } } else { - for (i = opt = 0; ip && *ip; ip = cp, opt++) { + for (opt = 0; ip && *ip; ip = cp, opt++) { if ((cp = strchr(ip, ':'))) { *cp++ = '\0'; } -- 1.7.2.3
Apparently Analagous Threads
- ipconfig bug with multiple interfaces
- [PATCH] ipconfig: Implement support -d ...:dns0:dns1 options
- [klibc:master] ipconfig: Implement support -d ...:dns0:dns1 options
- [klibc:master] ipconfig: Ignore NTP server address and any additional fields
- [klibc:master] ipconfig: Implement classless static routes