aboutsummaryrefslogtreecommitdiff
path: root/coreutils/head.c
diff options
context:
space:
mode:
Diffstat (limited to 'coreutils/head.c')
-rw-r--r--coreutils/head.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/coreutils/head.c b/coreutils/head.c
index 629307719..570f140b1 100644
--- a/coreutils/head.c
+++ b/coreutils/head.c
@@ -91,19 +91,19 @@ int head_main(int argc, char **argv)
91 } 91 }
92 } 92 }
93 93
94 argc -= optind;
94 argv += optind; 95 argv += optind;
95 if (!*argv) { 96 if (!*argv)
96 *--argv = (char*)"-"; 97 *--argv = (char*)"-";
97 }
98 98
99 fmt = header_fmt_str + 1; 99 fmt = header_fmt_str + 1;
100#if ENABLE_FEATURE_FANCY_HEAD 100#if ENABLE_FEATURE_FANCY_HEAD
101 if (argc - optind <= header_threshhold) { 101 if (argc <= header_threshhold) {
102 header_threshhold = 0; 102 header_threshhold = 0;
103 } 103 }
104#else 104#else
105 if (argc <= optind + 1) { 105 if (argc <= 1) {
106 fmt += 11; 106 fmt += 11; /* "" */
107 } 107 }
108 /* Now define some things here to avoid #ifdefs in the code below. 108 /* Now define some things here to avoid #ifdefs in the code below.
109 * These should optimize out of the if conditions below. */ 109 * These should optimize out of the if conditions below. */