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 <jon.turney@dronecode.org.uk>
Signed-off-by: Peter Hutterer's avatarPeter Hutterer <peter.hutterer@who-t.net>
parent 5dce5636
......@@ -98,7 +98,7 @@ print_events(Display *dpy)
{
XEvent Event;
setlinebuf(stdout);
setvbuf(stdout, NULL, _IOLBF, 0);
while(1) {
XNextEvent(dpy, &Event);
......
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment