[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH 11 of 18] tools/libvchan: fix function prototypes in node-select.c



# HG changeset patch
# User Olaf Hering <olaf@xxxxxxxxx>
# Date 1333397559 -7200
# Node ID c582ef14a24cb2186c1748047a62a85fae0dbeb3
# Parent  b0863d6ce260ffdfb9dd6c76d84c083fcf372a7f
tools/libvchan: fix function prototypes in node-select.c

-O2 -Wall -Werror triggers these warnings:

node-select.c:57:6: warning: function declaration isn't a prototype 
[-Wstrict-prototypes]
node-select.c:71:6: warning: function declaration isn't a prototype 
[-Wstrict-prototypes]

v2:
 - fix just the -Wstrict-prototypes warning

Signed-off-by: Olaf Hering <olaf@xxxxxxxxx>

diff -r b0863d6ce260 -r c582ef14a24c tools/libvchan/node-select.c
--- a/tools/libvchan/node-select.c
+++ b/tools/libvchan/node-select.c
@@ -54,7 +54,7 @@ int insiz = 0;
 int outsiz = 0;
 struct libxenvchan *ctrl = 0;
 
-void vchan_wr() {
+void vchan_wr(void) {
        if (!insiz)
                return;
        int ret = libxenvchan_write(ctrl, inbuf, insiz);
@@ -68,7 +68,7 @@ void vchan_wr() {
        }
 }
 
-void stdout_wr() {
+void stdout_wr(void) {
        if (!outsiz)
                return;
        int ret = write(1, outbuf, outsiz);

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.