/* on NOMMU reexec (i.e., background) early */
if (!(opt & OPT_f)) {
bb_daemonize_or_rexec(0 /* flags */, argv);
- logmode = 0;
+ logmode = LOGMODE_NONE;
}
#endif
if (opt & OPT_S) {
- openlog(applet_name, LOG_PID, LOG_LOCAL0);
+ openlog(applet_name, LOG_PID, LOG_DAEMON);
logmode |= LOGMODE_SYSLOG;
}
* "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);
* 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;
}