From a8421e81078b91ae97ada3be352416eae26a9c7b Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 10 Sep 2006 14:19:38 +0000 Subject: r18343: fixed setlinebuf() prototype, added test for it, and use it in two places to avoid a #ifdef (This used to be commit 095b8057740a4bb207e24e4c63a2dcb53521a72f) --- source4/utils/net/net.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'source4/utils/net') diff --git a/source4/utils/net/net.c b/source4/utils/net/net.c index 70c1de922d..7e885acfe8 100644 --- a/source4/utils/net/net.c +++ b/source4/utils/net/net.c @@ -151,9 +151,7 @@ static int binary_net(int argc, const char **argv) { NULL } }; -#ifdef HAVE_SETBUFFER - setbuffer(stdout, NULL, 0); -#endif + setlinebuf(stdout); pc = poptGetContext("net", argc, (const char **) argv, long_options, POPT_CONTEXT_KEEP_FIRST); -- cgit