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] --- archival/bunzip2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'archival/bunzip2.c') diff --git a/archival/bunzip2.c b/archival/bunzip2.c index 757001f..a6cd176 100644 --- a/archival/bunzip2.c +++ b/archival/bunzip2.c @@ -23,7 +23,7 @@ int bunzip2_main(int argc, char **argv) /* Set input filename and number */ filename = argv[optind]; - if ((filename) && (filename[0] != '-') && (filename[1] != '\0')) { + if (filename && NOT_LONE_DASH(filename)) { /* Open input file */ src_fd = xopen(filename, O_RDONLY); } else { -- cgit v1.1