[PATCH] Warning fix for shm.c

Jon TURNEY jon.turney at dronecode.org.uk
Thu Oct 13 04:33:00 PDT 2011


shm.c: In function 'CheckForShmSyscall':
shm.c:182:5: warning: function declaration isn't a prototype [-Wstrict-prototypes]

Signed-off-by: Jon TURNEY <jon.turney at dronecode.org.uk>
---
 Xext/shm.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/Xext/shm.c b/Xext/shm.c
index 9c8beb2..f2d84be 100644
--- a/Xext/shm.c
+++ b/Xext/shm.c
@@ -179,7 +179,7 @@ SigSysHandler(int signo)
 
 static Bool CheckForShmSyscall(void)
 {
-    void (*oldHandler)();
+    void (*oldHandler)(int);
     int shmid = -1;
 
     /* If no SHM support in the kernel, the bad syscall will generate SIGSYS */
-- 
1.7.5.1



More information about the xorg-devel mailing list