ntpd: default to FEATURE_NTP_AUTH=y
[oweals/busybox.git] / coreutils / cat.c
index 5f02233caa0c59e953941cf0022393a875fbf532..fb735f994092d91961bd9dc2a388e8e40fa9fe83 100644 (file)
@@ -112,10 +112,10 @@ static int catv(unsigned opts, char **argv)
        int retval = EXIT_SUCCESS;
        int fd;
 #if ENABLE_FEATURE_CATN
-       unsigned lineno = 0;
-       unsigned eol_char = (opts & (CAT_OPT_n|CAT_OPT_b)) ? '\n' : 0x100;
+       bool eol_seen = (opts & (CAT_OPT_n|CAT_OPT_b));
+       unsigned eol_char = (eol_seen ? '\n' : 0x100);
        unsigned skip_num_on = (opts & CAT_OPT_b) ? '\n' : 0x100;
-       bool eol_seen = 1;
+       unsigned lineno = 0;
 #endif
 
        BUILD_BUG_ON(CAT_OPT_e != VISIBLE_ENDLINE);