summaryrefslogtreecommitdiff
path: root/source4/torture
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2006-09-10 14:19:38 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:18:13 -0500
commita8421e81078b91ae97ada3be352416eae26a9c7b (patch)
treeb9b67018df5572b6d5e2d3125f497e4373182867 /source4/torture
parent3dc237eb28e9254eabf9a1eab08f858ca4830fbe (diff)
downloadsamba-a8421e81078b91ae97ada3be352416eae26a9c7b.tar.gz
samba-a8421e81078b91ae97ada3be352416eae26a9c7b.tar.bz2
samba-a8421e81078b91ae97ada3be352416eae26a9c7b.zip
r18343: fixed setlinebuf() prototype, added test for it, and use it in two
places to avoid a #ifdef (This used to be commit 095b8057740a4bb207e24e4c63a2dcb53521a72f)
Diffstat (limited to 'source4/torture')
-rw-r--r--source4/torture/smbtorture.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/source4/torture/smbtorture.c b/source4/torture/smbtorture.c
index b924b37c23..3e834970a7 100644
--- a/source4/torture/smbtorture.c
+++ b/source4/torture/smbtorture.c
@@ -413,9 +413,7 @@ const static struct torture_ui_ops quiet_ui_ops = {
{ NULL }
};
-#ifdef HAVE_SETBUFFER
- setbuffer(stdout, NULL, 0);
-#endif
+ setlinebuf(stdout);
/* we are never interested in SIGPIPE */
BlockSignals(True,SIGPIPE);