]> diplodocus.org Git - xorg-xinput/commitdiff
Use setvbuf() instead of setlinebuf()
authorJon TURNEY <jon.turney@dronecode.org.uk>
Mon, 1 Jul 2013 17:36:28 +0000 (18:36 +0100)
committerPeter Hutterer <peter.hutterer@who-t.net>
Tue, 2 Jul 2013 23:56:01 +0000 (09:56 +1000)
setlinebuf() added in commit bcfa9123b41da8048450ed27aaeffff17b8eee99 is not in
SuS v3, use the exactly equivalent C89 setvbuf() invocation for portability

Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
src/test.c
src/test_xi2.c

index 0c955010d62b8871c84768c8b15e5c459f3bc17f..efd268accedfa5a355307b2c7e456e648b4dcf9d 100644 (file)
@@ -98,7 +98,7 @@ print_events(Display  *dpy)
 {
     XEvent        Event;
 
-    setlinebuf(stdout);
+    setvbuf(stdout, NULL, _IOLBF, 0);
 
     while(1) {
        XNextEvent(dpy, &Event);
index 04e1004b9e5c41b9c1d2b3de48a98cef4cb310f9..3139d723e6804a690d8a0378df980f81cb40ad22 100644 (file)
@@ -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)