summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/test.c2
-rw-r--r--src/test_xi2.c2
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)