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 /editors/sed.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 'editors/sed.c')
-rw-r--r-- | editors/sed.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/editors/sed.c b/editors/sed.c index ac3d8d4..8d372ab 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; |