maximilian attems
2011-Jun-14 22:41 UTC
[klibc] [PATCH] ipconfig: do_pkt_recv() refix ret initialisation
fix: usr/kinit/ipconfig/main.c: In function ?ipconfig_main?: usr/kinit/ipconfig/main.c:350:7: warning: ?ret? may be used uninitialized in this function [-Wuninitialized] usr/kinit/ipconfig/main.c:346:6: note: ?ret? was declared here I think the initialisation change in 6df362216a2e5beb4f29feafeabc630034a76914 was unintentional. Cc: Ulrich Dangel <uli at spamt.net> Signed-off-by: maximilian attems <max at stro.at> --- Need to field test it yet, haven't checked it on usage. usr/kinit/ipconfig/main.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/usr/kinit/ipconfig/main.c b/usr/kinit/ipconfig/main.c index 4833bb7..6ad5588 100644 --- a/usr/kinit/ipconfig/main.c +++ b/usr/kinit/ipconfig/main.c @@ -343,7 +343,7 @@ struct netdev *ifaces; */ static int do_pkt_recv(int pkt_fd, time_t now) { - int ret; + int ret = 0; struct state *s; for (s = slist; s; s = s->next) { -- 1.7.5.3