diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2006-12-16 23:49:13 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2006-12-16 23:49:13 +0000 |
commit | 9f739445cd3deddd0343c3a8d5a981ede26bef30 (patch) | |
tree | 6dc013e44d2281eb1e6f61c4bca1ae7546001f79 /coreutils/tail.c | |
parent | a597aaddfa76d589d3e1a37b1f1c3401c2decffd (diff) | |
download | busybox-w32-9f739445cd3deddd0343c3a8d5a981ede26bef30.tar.gz busybox-w32-9f739445cd3deddd0343c3a8d5a981ede26bef30.tar.bz2 busybox-w32-9f739445cd3deddd0343c3a8d5a981ede26bef30.zip |
inline strcmp(s, "-") [actually macro-ize it for now - gcc is too stupid]
Diffstat (limited to 'coreutils/tail.c')
-rw-r--r-- | coreutils/tail.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/coreutils/tail.c b/coreutils/tail.c index ed5ea1467..4c3c3b901 100644 --- a/coreutils/tail.c +++ b/coreutils/tail.c | |||
@@ -176,8 +176,8 @@ int tail_main(int argc, char **argv) | |||
176 | } | 176 | } |
177 | 177 | ||
178 | do { | 178 | do { |
179 | if ((argv[i][0] == '-') && !argv[i][1]) { | 179 | if (LONE_DASH(argv[i])) { |
180 | DO_STDIN: | 180 | DO_STDIN: |
181 | fds[nfiles] = STDIN_FILENO; | 181 | fds[nfiles] = STDIN_FILENO; |
182 | } else if ((fds[nfiles] = open(argv[i], O_RDONLY)) < 0) { | 182 | } else if ((fds[nfiles] = open(argv[i], O_RDONLY)) < 0) { |
183 | bb_perror_msg("%s", argv[i]); | 183 | bb_perror_msg("%s", argv[i]); |