From 9f739445cd3deddd0343c3a8d5a981ede26bef30 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Sat, 16 Dec 2006 23:49:13 +0000 Subject: inline strcmp(s, "-") [actually macro-ize it for now - gcc is too stupid] --- coreutils/tail.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'coreutils/tail.c') 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) } do { - if ((argv[i][0] == '-') && !argv[i][1]) { - DO_STDIN: + if (LONE_DASH(argv[i])) { + DO_STDIN: fds[nfiles] = STDIN_FILENO; } else if ((fds[nfiles] = open(argv[i], O_RDONLY)) < 0) { bb_perror_msg("%s", argv[i]); -- cgit v1.2.3