httpd: reduce ifdef forest. comment out redundant PATH setting
[oweals/busybox.git] / networking / fakeidentd.c
index 2d690edba7bc2a69c0fa9deb72a031be603f9046..18e86c50bbdd5c1f4835c258beb137f8617564c2 100644 (file)
@@ -140,7 +140,7 @@ static int godaemon(void)
        case 0:
                pw = getpwnam(nobodystr);
                if (pw == NULL)
-                       bb_error_msg_and_die("Cannot find uid/gid of user '%s'", nobodystr);
+                       bb_error_msg_and_die("cannot find uid/gid of user '%s'", nobodystr);
                nobody = pw->pw_uid;
                nogrp = pw->pw_gid;
                writepid(nobody, nogrp);
@@ -219,7 +219,7 @@ static int checkInput(char *buf, int len, int l)
 int fakeidentd_main(int argc, char **argv)
 {
        /* This applet is an inetd-style daemon */
-       openlog(bb_applet_name, 0, LOG_DAEMON);
+       openlog(applet_name, 0, LOG_DAEMON);
        logmode = LOGMODE_SYSLOG;
 
        memset(conns, 0, sizeof(conns));
@@ -228,7 +228,7 @@ int fakeidentd_main(int argc, char **argv)
        FD_SET(0, &G.readfds);
 
        /* handle -b <ip> parameter */
-       bb_getopt_ulflags(argc, argv, "b:", &bind_ip_address);
+       getopt32(argc, argv, "b:", &bind_ip_address);
        /* handle optional REPLY STRING */
        if (optind < argc)
                G.identuser = argv[optind];