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] --- miscutils/crontab.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'miscutils/crontab.c') diff --git a/miscutils/crontab.c b/miscutils/crontab.c index 39d3aae41..d442272f0 100644 --- a/miscutils/crontab.c +++ b/miscutils/crontab.c @@ -51,7 +51,7 @@ int crontab_main(int ac, char **av) i = 1; if (ac > 1) { - if (av[1][0] == '-' && av[1][1] == 0) { + if (LONE_DASH(av[1])) { option = REPLACE; ++i; } else if (av[1][0] != '-') { -- cgit v1.2.3