From mboxrd@z Thu Jan 1 00:00:00 1970 From: Olaf Hering Subject: [PATCH 11 of 18] tools/libvchan: fix function prototypes in node-select.c Date: Mon, 02 Apr 2012 22:15:34 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xensource.com Cc: Ian Jackson List-Id: xen-devel@lists.xenproject.org # HG changeset patch # User Olaf Hering # 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 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);