aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormaximilian attems <max@stro.at>2010-11-10 17:07:22 +0100
committermaximilian attems <max@stro.at>2010-11-10 17:08:13 +0100
commitd16a35c5afb729e9f958983c9256614e5a4ff582 (patch)
treee287924472ff750a28659084271e07bc382c7e42
parentda0ce3dde0b39ed2aaf4f61d2f1180f080dad45f (diff)
downloadklibc-d16a35c5afb729e9f958983c9256614e5a4ff582.tar.gz
[klibc] ipconfig: parse_device nuke unused variable i
gets assigned a value without any further usage. Signed-off-by: maximilian attems <max@stro.at>
-rw-r--r--usr/kinit/ipconfig/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/kinit/ipconfig/main.c b/usr/kinit/ipconfig/main.c
index b392e6aea0e0d..d912f6d064d04 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';
}