diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2006-12-16 23:49:13 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2006-12-16 23:49:13 +0000 |
commit | 9f739445cd3deddd0343c3a8d5a981ede26bef30 (patch) | |
tree | 6dc013e44d2281eb1e6f61c4bca1ae7546001f79 /editors/sed.c | |
parent | a597aaddfa76d589d3e1a37b1f1c3401c2decffd (diff) | |
download | busybox-w32-9f739445cd3deddd0343c3a8d5a981ede26bef30.tar.gz busybox-w32-9f739445cd3deddd0343c3a8d5a981ede26bef30.tar.bz2 busybox-w32-9f739445cd3deddd0343c3a8d5a981ede26bef30.zip |
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 ac3d8d463..8d372abe4 100644 --- a/editors/sed.c +++ b/editors/sed.c | |||
@@ -1235,9 +1235,7 @@ int sed_main(int argc, char **argv) | |||
1235 | struct stat statbuf; | 1235 | struct stat statbuf; |
1236 | int nonstdoutfd; | 1236 | int nonstdoutfd; |
1237 | 1237 | ||
1238 | if (argv[i][0] == '-' && !argv[i][1] | 1238 | if (LONE_DASH(argv[i]) && !(opt & OPT_in_place)) { |
1239 | && !(opt & OPT_in_place) | ||
1240 | ) { | ||
1241 | add_input_file(stdin); | 1239 | add_input_file(stdin); |
1242 | process_files(); | 1240 | process_files(); |
1243 | continue; | 1241 | continue; |