diff options
author | Denis Vlasenko | 2009-01-14 00:28:03 +0000 |
---|---|---|
committer | Denis Vlasenko | 2009-01-14 00:28:03 +0000 |
commit | ec64a5775e6836f7a74d2262001ef68d3110a243 (patch) | |
tree | c69ad523e0bb9408501b96bfd2925dbff81d3d3a /networking | |
parent | 1265df1f3194db1da2b9d711772038d6045e2ef4 (diff) | |
download | busybox-ec64a5775e6836f7a74d2262001ef68d3110a243.zip busybox-ec64a5775e6836f7a74d2262001ef68d3110a243.tar.gz |
dhcpc: suppress "warning: 'timestamp_before_wait' might be used uninitialized
Diffstat (limited to 'networking')
-rw-r--r-- | networking/udhcp/dhcpc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/networking/udhcp/dhcpc.c b/networking/udhcp/dhcpc.c index 115cddb..da58a5a 100644 --- a/networking/udhcp/dhcpc.c +++ b/networking/udhcp/dhcpc.c @@ -324,7 +324,8 @@ int udhcpc_main(int argc UNUSED_PARAM, char **argv) * "continue" statements in code below jump to the top of the loop. */ for (;;) { - unsigned timestamp_before_wait; + /* silence "uninitialized!" warning */ + unsigned timestamp_before_wait = timestamp_before_wait; //bb_error_msg("sockfd:%d, listen_mode:%d", sockfd, listen_mode); @@ -441,7 +442,7 @@ int udhcpc_main(int argc UNUSED_PARAM, char **argv) * try to find DHCP server using broadcast */ if (timeout > 0) { /* send a request packet */ - send_renew(xid, 0 /* INADDR_ANY*/, requested_ip); /* broadcast */ + send_renew(xid, 0 /*INADDR_ANY*/, requested_ip); /* broadcast */ timeout >>= 1; continue; } |