From: Christophe CURIS Date: Sun, 30 Jun 2013 14:02:36 +0000 (+0200) Subject: wmaker: Moved function prototype to the appropriate header X-Git-Tag: wmaker-0.95.5~7 X-Git-Url: https://repo.or.cz/w/wmaker-crm.git/commitdiff_plain/496cb58ceaca6e631b070a0a899c5c957b3b6e60 wmaker: Moved function prototype to the appropriate header 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 --- diff --git a/src/event.c b/src/event.c index 495d2b46..95b437b2 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 7208b6e2..780f04e0 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 5f994f8e..5f906c7f 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;