]> granicus.if.org Git - libevent/commitdiff
Suppress a gcc warning from ignoring fwrite return in http-sample.c
authorNick Mathewson <nickm@torproject.org>
Mon, 16 Jan 2012 19:45:31 +0000 (14:45 -0500)
committerNick Mathewson <nickm@torproject.org>
Mon, 16 Jan 2012 19:45:31 +0000 (14:45 -0500)
Found by Steve Snyder

sample/http-server.c

index cd6b27aff8b1f30b2618271b9ae986129526e08b..fb45579260f39697d2bb820fc9e66778bfe25669 100644 (file)
@@ -134,7 +134,7 @@ dump_request_cb(struct evhttp_request *req, void *arg)
                char cbuf[128];
                n = evbuffer_remove(buf, cbuf, sizeof(buf)-1);
                if (n > 0)
-                   fwrite(cbuf, 1, n, stdout);
+                       (void) fwrite(cbuf, 1, n, stdout);
        }
        puts(">>>");