[PATCH:xts 12/16] xts5: Fix missing type specifiers.
Cyril Brulebois
kibi at debian.org
Wed May 25 04:00:21 PDT 2011
Switch from default int to void since those functions don't return
anything. Adapt the relevant header accordingly.
The following warnings go away accordingly:
| CC pfcount.lo
| pfcount.c:118:1: waning: type specifier missing, defaults to 'int' [-Wimplicit-int]
| pfcount(pass, fail)
| ^~~~~~~
| pfcount.c:126:1: waning: type specifier missing, defaults to 'int' [-Wimplicit-int]
| rptcounts()
| ^~~~~~~~~
Signed-off-by: Cyril Brulebois <kibi at debian.org>
---
xts5/include/xtlibproto.h | 4 ++--
xts5/src/lib/pfcount.c | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/xts5/include/xtlibproto.h b/xts5/include/xtlibproto.h
index 59eb02d..8c176a7 100644
--- a/xts5/include/xtlibproto.h
+++ b/xts5/include/xtlibproto.h
@@ -321,8 +321,8 @@ void settimeout(int to);
unsigned long cleartimeout(void);
Region makeregion(void);
int samehost(XHostAddress *h1, XHostAddress *h2);
-int pfcount(int pass, int fail);
-int rptcounts(void);
+void pfcount(int pass, int fail);
+void rptcounts(void);
Status SimulateKeyPressEvent(Display *dpy, KeyCode keycode);
Status SimulateKeyReleaseEvent(Display *dpy, KeyCode keycode);
Status SimulateButtonPressEvent(Display *dpy, unsigned int button);
diff --git a/xts5/src/lib/pfcount.c b/xts5/src/lib/pfcount.c
index c7f2343..9e2e50c 100644
--- a/xts5/src/lib/pfcount.c
+++ b/xts5/src/lib/pfcount.c
@@ -115,7 +115,7 @@ static int failcount;
* use at all because there is no guarantee that pfcount is actually
* called.
*/
-pfcount(pass, fail)
+void pfcount(pass, fail)
int pass;
int fail;
{
@@ -123,7 +123,7 @@ int fail;
failcount += failcount;
}
-rptcounts()
+void rptcounts()
{
trace("passcount=%d, failcount=%d", passcount, failcount);
}
--
1.7.5.1
More information about the xorg-devel
mailing list