From 31f16389f6bc3855058b4a35181c31183150a061 Mon Sep 17 00:00:00 2001 From: "Carlos R. Mafra" Date: Sun, 23 Aug 2009 15:15:29 +0200 Subject: [PATCH] Fix function prototype declaration It is safer if the functions are declared with proper prototype specifications. This patch addresses some of the warnings with -Wstrict-prototype, like this: event.c:105: warning: function declaration isn't a prototype --- src/event.c | 44 ++++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/src/event.c b/src/event.c index c7657f88..b6ed4f9c 100644 --- a/src/event.c +++ b/src/event.c @@ -101,27 +101,27 @@ extern int wXkbEventBase; /************ Local stuff ***********/ -static void saveTimestamp(XEvent * event); -static void handleColormapNotify(); -static void handleMapNotify(); -static void handleUnmapNotify(); -static void handleButtonPress(); -static void handleExpose(); -static void handleDestroyNotify(); -static void handleConfigureRequest(); -static void handleMapRequest(); -static void handlePropertyNotify(); -static void handleEnterNotify(); -static void handleLeaveNotify(); -static void handleExtensions(); -static void handleClientMessage(); -static void handleKeyPress(); -static void handleFocusIn(); -static void handleMotionNotify(); -static void handleVisibilityNotify(); +static void saveTimestamp(XEvent *event); +static void handleColormapNotify(XEvent *event); +static void handleMapNotify(XEvent *event); +static void handleUnmapNotify(XEvent *event); +static void handleButtonPress(XEvent *event); +static void handleExpose(XEvent *event); +static void handleDestroyNotify(XEvent *event); +static void handleConfigureRequest(XEvent *event); +static void handleMapRequest(XEvent *event); +static void handlePropertyNotify(XEvent *event); +static void handleEnterNotify(XEvent *event); +static void handleLeaveNotify(XEvent *event); +static void handleExtensions(XEvent *event); +static void handleClientMessage(XEvent *event); +static void handleKeyPress(XEvent *event); +static void handleFocusIn(XEvent *event); +static void handleMotionNotify(XEvent *event); +static void handleVisibilityNotify(XEvent *event); #ifdef SHAPE -static void handleShapeNotify(); +static void handleShapeNotify(XEvent *event); #endif /* called from the signal handler */ @@ -302,7 +302,7 @@ void DispatchEvent(XEvent * event) #define BUFF_SIZE ((sizeof(struct inotify_event) + 16)*512) void inotifyHandleEvents(int fd, int wd) { - extern void wDefaultsCheckDomains(); + extern void wDefaultsCheckDomains(void); ssize_t eventQLength, i = 0; char buff[BUFF_SIZE] = { 0 }; /* Check config only once per read of the event queue */ @@ -359,7 +359,7 @@ void inotifyHandleEvents(int fd, int wd) * Calls inotifyGetEvents if defaults database changes. *---------------------------------------------------------------------- */ -void EventLoop() +void EventLoop(void) { XEvent event; extern int inotifyFD; @@ -413,7 +413,7 @@ void EventLoop() * *---------------------------------------------------------------------- */ -void ProcessPendingEvents() +void ProcessPendingEvents(void) { XEvent event; int count; -- 2.11.4.GIT