search for: b392e6a

Displaying 2 results from an estimated 2 matches for "b392e6a".

Did you mean: b322e6da
2010 Nov 10
0
[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:...
2010 Aug 25
0
[patch] ipconfig fixes + run-init nit
...I found that klibc always exit 0 which isn't that convenient . Belows patch fixes the issue. [ small coding style changes - maks] Signed-off-by: maximilian attems <max at stro.at> diff --git a/usr/kinit/ipconfig/main.c b/usr/kinit/ipconfig/main.c index b014128..b392e6a 100644 --- a/usr/kinit/ipconfig/main.c +++ b/usr/kinit/ipconfig/main.c @@ -331,7 +331,7 @@ static int loop(void) struct pollfd fds[NR_FDS]; struct state *s; int pkt_fd; - int nr = 0; + int nr = 0, rc = 0; struct timeval now, prev; time_t start; @@ -396,6 +396,7 @@ static int loop(void)...