[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
- To: xen-devel@xxxxxxxxxxxxxxxxxxx
- From: Olaf Hering <olaf@xxxxxxxxx>
- Date: Mon, 02 Apr 2012 22:15:34 +0200
- Cc: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>
- Delivery-date: Mon, 02 Apr 2012 20:16:21 +0000
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; t=1333397761; l=1076; s=domk; d=aepfle.de; h=Cc:To:From:Date:References:In-Reply-To:Subject: Content-Transfer-Encoding:MIME-Version:Content-Type:X-RZG-CLASS-ID: X-RZG-AUTH; bh=iqPUaqsWs6dihbg9A+WTcUtuHmk=; b=bUVSXN0q6PdOzjLgSmaMT8bJs43ntDrNVF1ft/gBBKmStSxSNJoz3/tJPI1/mu7yhJ2 Bn8XRDvyWQJKs+DNKhwbU0q7vc/PU5oGkrv8fNNbIMFjcUVXmvplsKa8ZLFv5aoyrTsae lxPxGhpO2HMDDUu0oiIVLh1jb6BnbQtBPr8=
- List-id: Xen developer discussion <xen-devel.lists.xen.org>
# 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