[PATCH 1/4] Xext: fix prototype warnings in xf86bigfont.c

Yaakov (Cygwin/X) yselkowitz at users.sourceforge.net
Sat Feb 20 23:33:12 PST 2010


From: Yaakov Selkowitz <yselkowitz at users.sourceforge.net>

xf86bigfont.c:147: warning: function declaration isn't a prototype
xf86bigfont.c:147: warning: old-style function definition
xf86bigfont.c:285: warning: no previous prototype for `XF86BigfontFreeFontShm'
xf86bigfont.c:306: warning: function declaration isn't a prototype
xf86bigfont.c:306: warning: old-style function definition

Signed-off-by: Yaakov Selkowitz <yselkowitz at users.sourceforge.net>
---
 Xext/xf86bigfont.c |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/Xext/xf86bigfont.c b/Xext/xf86bigfont.c
index ba8b603..ba5af51 100644
--- a/Xext/xf86bigfont.c
+++ b/Xext/xf86bigfont.c
@@ -86,6 +86,10 @@ static DISPATCH_PROC(SProcXF86BigfontDispatch);
 static DISPATCH_PROC(SProcXF86BigfontQueryVersion);
 static DISPATCH_PROC(SProcXF86BigfontQueryFont);
 
+void XFree86BigfontExtensionInit(void);
+void XF86BigfontFreeFontShm(FontPtr);
+void XF86BigfontCleanup(void);
+
 #ifdef HAS_SHM
 
 /* A random signature, transmitted to the clients so they can verify that the
@@ -143,7 +147,7 @@ CheckForShmSyscall(void)
 #endif
 
 void
-XFree86BigfontExtensionInit()
+XFree86BigfontExtensionInit(void)
 {
     if (AddExtension(XF86BIGFONTNAME,
 		     XF86BigfontNumberEvents,
@@ -302,7 +306,7 @@ XF86BigfontFreeFontShm(
 
 /* Called upon fatal signal. */
 void
-XF86BigfontCleanup()
+XF86BigfontCleanup(void)
 {
 #ifdef HAS_SHM
     while (ShmList)
-- 
1.6.6.1



More information about the xorg-devel mailing list