#if HAVE_AFINET6 -> #ifdef HAVE_AFINET6
[oweals/busybox.git] / networking / zcip.c
index d9c1adf194752da4e114621a4a606ec9796ef32c..27e281c93266c904b2771dd5d7311466d4116211 100644 (file)
 // - link status monitoring (restart on link-up; stop on link-down)
 
 #include "busybox.h"
-#include <errno.h>
-#include <string.h>
 #include <syslog.h>
 #include <poll.h>
-#include <time.h>
-
 #include <sys/wait.h>
-
 #include <netinet/ether.h>
 #include <net/ethernet.h>
 #include <net/if.h>
@@ -222,7 +217,7 @@ int zcip_main(int argc, char *argv[])
        if (!FOREGROUND) {
                /* Do it early, before all bb_xx_msg calls */
                logmode = LOGMODE_SYSLOG;
-               openlog(bb_applet_name, 0, LOG_DAEMON);
+               openlog(applet_name, 0, LOG_DAEMON);
        }
        if (opts & 4) { // -r n.n.n.n
                if (inet_aton(r_opt, &ip) == 0