aboutsummaryrefslogtreecommitdiff
path: root/coreutils
diff options
context:
space:
mode:
Diffstat (limited to 'coreutils')
-rw-r--r--coreutils/head.c5
-rw-r--r--coreutils/od.c2
-rw-r--r--coreutils/tail.c9
3 files changed, 7 insertions, 9 deletions
diff --git a/coreutils/head.c b/coreutils/head.c
index d732461f7..f2c948300 100644
--- a/coreutils/head.c
+++ b/coreutils/head.c
@@ -49,9 +49,8 @@ int head_main(int argc, char **argv)
49 49
50#if !ENABLE_DEBUG_YANK_SUSv2 || ENABLE_FEATURE_FANCY_HEAD 50#if !ENABLE_DEBUG_YANK_SUSv2 || ENABLE_FEATURE_FANCY_HEAD
51 /* Allow legacy syntax of an initial numeric option without -n. */ 51 /* Allow legacy syntax of an initial numeric option without -n. */
52 if ((argc > 1) && (argv[1][0] == '-') 52 if (argc > 1 && argv[1][0] == '-'
53 /* && (isdigit)(argv[1][1]) */ 53 && isdigit(argv[1][1])
54 && (((unsigned int)(argv[1][1] - '0')) <= 9)
55 ) { 54 ) {
56 --argc; 55 --argc;
57 ++argv; 56 ++argv;
diff --git a/coreutils/od.c b/coreutils/od.c
index 9a2d4c343..8de866281 100644
--- a/coreutils/od.c
+++ b/coreutils/od.c
@@ -21,7 +21,7 @@
21#include "busybox.h" 21#include "busybox.h"
22#include "dump.h" 22#include "dump.h"
23 23
24#define isdecdigit(c) (isdigit)(c) 24#define isdecdigit(c) isdigit(c)
25#define ishexdigit(c) (isxdigit)(c) 25#define ishexdigit(c) (isxdigit)(c)
26 26
27static void 27static void
diff --git a/coreutils/tail.c b/coreutils/tail.c
index 82c0d99bc..ed5ea1467 100644
--- a/coreutils/tail.c
+++ b/coreutils/tail.c
@@ -93,7 +93,7 @@ static const char header_fmt[] = "\n==> %s <==\n";
93int tail_main(int argc, char **argv) 93int tail_main(int argc, char **argv)
94{ 94{
95 long count = 10; 95 long count = 10;
96 unsigned int sleep_period = 1; 96 unsigned sleep_period = 1;
97 int from_top = 0; 97 int from_top = 0;
98 int follow = 0; 98 int follow = 0;
99 int header_threshhold = 1; 99 int header_threshhold = 1;
@@ -110,10 +110,9 @@ int tail_main(int argc, char **argv)
110 110
111#if !ENABLE_DEBUG_YANK_SUSv2 || ENABLE_FEATURE_FANCY_TAIL 111#if !ENABLE_DEBUG_YANK_SUSv2 || ENABLE_FEATURE_FANCY_TAIL
112 /* Allow legacy syntax of an initial numeric option without -n. */ 112 /* Allow legacy syntax of an initial numeric option without -n. */
113 if (argc >=2 && ((argv[1][0] == '+') || ((argv[1][0] == '-') 113 if (argc >= 2 && (argv[1][0] == '+' || argv[1][0] == '-')
114 /* && (isdigit)(argv[1][1]) */ 114 && isdigit(argv[1][1])
115 && (((unsigned int)(argv[1][1] - '0')) <= 9)))) 115 ) {
116 {
117 optind = 2; 116 optind = 2;
118 optarg = argv[1]; 117 optarg = argv[1];
119 goto GET_COUNT; 118 goto GET_COUNT;