diff options
author | vda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-11-27 14:44:18 +0000 |
---|---|---|
committer | vda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-11-27 14:44:18 +0000 |
commit | f9cc9081205c29917da34460395b6da2dc4c4567 (patch) | |
tree | 8dd4e8a4db28561fad1dcaeabee936a3aad7187c /coreutils/head.c | |
parent | 278809224505ecc8bbef7b9a86982bf35b46e719 (diff) | |
download | busybox-w32-f9cc9081205c29917da34460395b6da2dc4c4567.tar.gz busybox-w32-f9cc9081205c29917da34460395b6da2dc4c4567.tar.bz2 busybox-w32-f9cc9081205c29917da34460395b6da2dc4c4567.zip |
Provide our own isdigit macro. saves more than 400 bytes.
git-svn-id: svn://busybox.net/trunk/busybox@16685 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'coreutils/head.c')
-rw-r--r-- | coreutils/head.c | 5 |
1 files changed, 2 insertions, 3 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; |