diff options
author | jilles <jilles@FreeBSD.org> | 2010-11-20 14:14:52 +0000 |
---|---|---|
committer | jilles <jilles@FreeBSD.org> | 2010-11-20 14:14:52 +0000 |
commit | 6915411ab291af6eba93647d13c0aa6714621fa2 (patch) | |
tree | bb660239ff9ba03cd107817f9d8d00fabdba49a1 /bin/sh/main.c | |
parent | 6a4a2e62a216ff7f70e10196bcdc7b3f4f76cad8 (diff) | |
download | FreeBSD-src-6915411ab291af6eba93647d13c0aa6714621fa2.zip FreeBSD-src-6915411ab291af6eba93647d13c0aa6714621fa2.tar.gz |
sh: Code size optimizations to buffered output.
This is mainly less use of the outc macro.
No functional change is intended, but code size is about 2K less on i386.
Diffstat (limited to 'bin/sh/main.c')
-rw-r--r-- | bin/sh/main.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/bin/sh/main.c b/bin/sh/main.c index 83a62a7..9298f69 100644 --- a/bin/sh/main.c +++ b/bin/sh/main.c @@ -128,10 +128,8 @@ main(int argc, char *argv[]) exitshell(exitstatus); } reset(); - if (exception == EXINT) { - out2c('\n'); - flushout(&errout); - } + if (exception == EXINT) + out2fmt_flush("\n"); popstackmark(&smark); FORCEINTON; /* enable interrupts */ if (state == 1) |