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] --- shell/msh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'shell/msh.c') diff --git a/shell/msh.c b/shell/msh.c index 492d3cf43..45ca3df81 100644 --- a/shell/msh.c +++ b/shell/msh.c @@ -1001,7 +1001,7 @@ static int newfile(char *s) DBGPRINTF7(("NEWFILE: opening %s\n", s)); - if (strcmp(s, "-") != 0) { + if (NOT_LONE_DASH(s)) { DBGPRINTF(("NEWFILE: s is %s\n", s)); f = open(s, 0); if (f < 0) { -- cgit v1.2.3