Commit a10f48d2 authored by Jon Turney's avatar Jon Turney Committed by Peter Hutterer

Use setvbuf() instead of setlinebuf()

setlinebuf() added in commit bcfa9123 is not in
SuS v3, use the exactly equivalent C89 setvbuf() invocation for portability
Signed-off-by: Jon Turney's avatarJon TURNEY <>
Signed-off-by: Peter Hutterer's avatarPeter Hutterer <>
parent 5dce5636
......@@ -98,7 +98,7 @@ print_events(Display *dpy)
XEvent Event;
setvbuf(stdout, NULL, _IOLBF, 0);
while(1) {
XNextEvent(dpy, &Event);
......@@ -326,7 +326,7 @@ test_xi2(Display *display,
int deviceid = -1;
int rc;
setvbuf(stdout, NULL, _IOLBF, 0);
rc = list(display, argc, argv, name, desc);
if (rc != EXIT_SUCCESS)
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment