diff options
author | pfg <pfg@FreeBSD.org> | 2015-12-26 18:26:44 +0000 |
---|---|---|
committer | pfg <pfg@FreeBSD.org> | 2015-12-26 18:26:44 +0000 |
commit | c41fd18fc06371fed84c5d6dce7ba85695860b6e (patch) | |
tree | 0ce7e76b1393255e3d259fcdb2107424ed233334 /usr.bin/bc/bc.y | |
parent | ea7b0bc9d3ed834403259e2de231703ba5092456 (diff) | |
download | FreeBSD-src-c41fd18fc06371fed84c5d6dce7ba85695860b6e.zip FreeBSD-src-c41fd18fc06371fed84c5d6dce7ba85695860b6e.tar.gz |
MFC r291155:
bc: sync with OpenBSD
tty.c Rev. 1.3
Avoid unintended problems with operator precedence when doing an
assignment and comparison.
bc.1, Rev. 1.31, 1.32
'.Ql Quit' -> '.Ql quit' because only the lowercase command is valid.
Clarify sentence about `quit` in BUGS section.
extern.h, Rev. 1.12
whitespace
bc.y, Rev. 1.47
Prefer setvbuf() to setlinebuf() for portability
Obtained from: OpenBSD
Diffstat (limited to 'usr.bin/bc/bc.y')
-rw-r--r-- | usr.bin/bc/bc.y | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/bc/bc.y b/usr.bin/bc/bc.y index 8e7e00c..50454e6 100644 --- a/usr.bin/bc/bc.y +++ b/usr.bin/bc/bc.y @@ -1125,7 +1125,7 @@ main(int argc, char *argv[]) int ch, i; init(); - setlinebuf(stdout); + setvbuf(stdout, NULL, _IOLBF, 0); sargv = malloc(argc * sizeof(char *)); if (sargv == NULL) |