diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/test.c | 2 | ||||
-rw-r--r-- | src/test_xi2.c | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -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) |