From: Christophe CURIS <[email protected]>

It is bad practice to define the prototype of an external function
inside a source file that wants to use it.

Signed-off-by: Christophe CURIS <[email protected]>
---
 src/event.c   |    3 ---
 src/event.h   |    3 +++
 src/startup.c |    2 --
 3 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/src/event.c b/src/event.c
index 495d2b4..95b437b 100644
--- a/src/event.c
+++ b/src/event.c
@@ -141,9 +141,6 @@ static void handleShapeNotify(XEvent *event);
 static void handleXkbIndicatorStateNotify(XEvent *event);
 #endif
 
-/* called from the signal handler */
-void NotifyDeadProcess(pid_t pid, unsigned char status);
-
 /* real dead process handler */
 static void handleDeadProcess(void *foo);
 
diff --git a/src/event.h b/src/event.h
index 7208b6e..780f04e 100644
--- a/src/event.h
+++ b/src/event.h
@@ -36,4 +36,7 @@ void ProcessPendingEvents(void);
 WMagicNumber wAddDeathHandler(pid_t pid, WDeathHandler *callback, void *cdata);
 Bool IsDoubleClick(WScreen *scr, XEvent *event);
 
+/* called from the signal handler */
+void NotifyDeadProcess(pid_t pid, unsigned char status);
+
 #endif /* WMEVENT_H */
diff --git a/src/startup.c b/src/startup.c
index 5f994f8..5f906c7 100644
--- a/src/startup.c
+++ b/src/startup.c
@@ -138,8 +138,6 @@ extern Cursor wCursor[WCUR_LAST];
 extern char WDelayedActionSet;
 #endif
 
-extern void NotifyDeadProcess(pid_t pid, unsigned char status);
-
 /***** Local *****/
 static WScreen **wScreen = NULL;
 static unsigned int _NumLockMask = 0;
-- 
1.7.10.4


-- 
To unsubscribe, send mail to [email protected].

Reply via email to