diff options
author | yar <yar@FreeBSD.org> | 2007-06-12 10:56:38 +0000 |
---|---|---|
committer | yar <yar@FreeBSD.org> | 2007-06-12 10:56:38 +0000 |
commit | 59136b3a6d401102fb2c9ec125e4155ad39526cf (patch) | |
tree | 1abc8fa5d8c71afcae3728df07bb6b362a7751a2 /usr.bin/sed | |
parent | 5589e856fbb16d98634e4a7c21f34bcf739648dc (diff) | |
download | FreeBSD-src-59136b3a6d401102fb2c9ec125e4155ad39526cf.zip FreeBSD-src-59136b3a6d401102fb2c9ec125e4155ad39526cf.tar.gz |
There is a symbolic antonym for REPLACE as a flag to cspace()
and mf_fgets(): APPEND. So use it instead of a 0 constant for
clarity.
Tested with: md5(1)
Diffstat (limited to 'usr.bin/sed')
-rw-r--r-- | usr.bin/sed/process.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.bin/sed/process.c b/usr.bin/sed/process.c index 9ed541f..c8b62c0 100644 --- a/usr.bin/sed/process.c +++ b/usr.bin/sed/process.c @@ -150,15 +150,15 @@ redirect: cspace(&PS, hs, hsl, REPLACE); break; case 'G': - cspace(&PS, "\n", 1, 0); - cspace(&PS, hs, hsl, 0); + cspace(&PS, "\n", 1, APPEND); + cspace(&PS, hs, hsl, APPEND); break; case 'h': cspace(&HS, ps, psl, REPLACE); break; case 'H': - cspace(&HS, "\n", 1, 0); - cspace(&HS, ps, psl, 0); + cspace(&HS, "\n", 1, APPEND); + cspace(&HS, ps, psl, APPEND); break; case 'i': (void)fprintf(outfile, "%s", cp->t); @@ -176,8 +176,8 @@ redirect: break; case 'N': flush_appends(); - cspace(&PS, "\n", 1, 0); - if (!mf_fgets(&PS, 0)) + cspace(&PS, "\n", 1, APPEND); + if (!mf_fgets(&PS, APPEND)) exit(0); break; case 'p': |