From a10f48d2dcd24fc4211d69b388f499398891c577 Mon Sep 17 00:00:00 2001 From: Jon TURNEY Date: Mon, 1 Jul 2013 18:36:28 +0100 Subject: Use setvbuf() instead of setlinebuf() setlinebuf() added in commit bcfa9123b41da8048450ed27aaeffff17b8eee99 is not in SuS v3, use the exactly equivalent C89 setvbuf() invocation for portability Signed-off-by: Jon TURNEY Signed-off-by: Peter Hutterer --- src/test.c | 2 +- src/test_xi2.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test.c b/src/test.c index 0c95501..efd268a 100644 --- a/src/test.c +++ b/src/test.c @@ -98,7 +98,7 @@ print_events(Display *dpy) { XEvent Event; - setlinebuf(stdout); + setvbuf(stdout, NULL, _IOLBF, 0); while(1) { XNextEvent(dpy, &Event); diff --git a/src/test_xi2.c b/src/test_xi2.c index 04e1004..3139d72 100644 --- a/src/test_xi2.c +++ b/src/test_xi2.c @@ -326,7 +326,7 @@ test_xi2(Display *display, int deviceid = -1; int rc; - setlinebuf(stdout); + setvbuf(stdout, NULL, _IOLBF, 0); rc = list(display, argc, argv, name, desc); if (rc != EXIT_SUCCESS) -- cgit v1.2.3