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] --- editors/sed.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'editors') diff --git a/editors/sed.c b/editors/sed.c index ac3d8d463..8d372abe4 100644 --- a/editors/sed.c +++ b/editors/sed.c @@ -1235,9 +1235,7 @@ int sed_main(int argc, char **argv) struct stat statbuf; int nonstdoutfd; - if (argv[i][0] == '-' && !argv[i][1] - && !(opt & OPT_in_place) - ) { + if (LONE_DASH(argv[i]) && !(opt & OPT_in_place)) { add_input_file(stdin); process_files(); continue; -- cgit v1.2.3