diff options
author | Denis Vlasenko | 2006-12-16 23:49:13 +0000 |
---|---|---|
committer | Denis Vlasenko | 2006-12-16 23:49:13 +0000 |
commit | 9f739445cd3deddd0343c3a8d5a981ede26bef30 (patch) | |
tree | 6dc013e44d2281eb1e6f61c4bca1ae7546001f79 /archival/unzip.c | |
parent | a597aaddfa76d589d3e1a37b1f1c3401c2decffd (diff) | |
download | busybox-9f739445cd3deddd0343c3a8d5a981ede26bef30.zip busybox-9f739445cd3deddd0343c3a8d5a981ede26bef30.tar.gz |
inline strcmp(s, "-") [actually macro-ize it for now - gcc is too stupid]
Diffstat (limited to 'archival/unzip.c')
-rw-r--r-- | archival/unzip.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/archival/unzip.c b/archival/unzip.c index 8b1c281..f553eef 100644 --- a/archival/unzip.c +++ b/archival/unzip.c @@ -187,11 +187,10 @@ int unzip_main(int argc, char **argv) } /* Open input file */ - if (strcmp("-", src_fn) == 0) { + if (LONE_DASH(src_fn)) { src_fd = STDIN_FILENO; /* Cannot use prompt mode since zip data is arriving on STDIN */ overwrite = (overwrite == o_prompt) ? o_never : overwrite; - } else { static const char *const extn[] = {"", ".zip", ".ZIP"}; int orig_src_fn_len = strlen(src_fn); |