httpd: reduce ifdef forest. comment out redundant PATH setting
[oweals/busybox.git] / networking / nameif.c
index 146eccea9ebaea0800f95c4cdf33b0b639950ed5..385e7fb718e02d46a16b1c56d143639bd09e05c3 100644 (file)
@@ -66,7 +66,7 @@ int nameif_main(int argc, char **argv)
        mactable_t *ch;
 
        if (1 & getopt32(argc, argv, "sc:", &fname)) {
-               openlog(bb_applet_name, 0, LOG_LOCAL0);
+               openlog(applet_name, 0, LOG_LOCAL0);
                logmode = LOGMODE_SYSLOG;
        }
 
@@ -91,7 +91,7 @@ int nameif_main(int argc, char **argv)
        } else {
                ifh = xfopen(fname, "r");
 
-               while ((line = bb_get_line_from_file(ifh)) != NULL) {
+               while ((line = xmalloc_fgets(ifh)) != NULL) {
                        char *line_ptr;
                        size_t name_length;