From 8238e4681aa09a3b64c65b68b6f73195c2256267 Mon Sep 17 00:00:00 2001 From: Christophe CURIS Date: Sat, 11 May 2013 00:07:14 +0200 Subject: [PATCH] WPrefs: Move declaration of function into the common header It is a bad idea to declare the prototype of an external function in a file as it won't allow the compiler to cross-check it. --- WPrefs.app/MouseSettings.c | 1 - WPrefs.app/WPrefs.h | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/WPrefs.app/MouseSettings.c b/WPrefs.app/MouseSettings.c index 5291c0d5..b684c5ce 100644 --- a/WPrefs.app/MouseSettings.c +++ b/WPrefs.app/MouseSettings.c @@ -95,7 +95,6 @@ static char *wheelActions[2]; #define DELAY(i) ((i)*75+170) -int ModifierFromKey(Display * dpy, char *key); static void setMouseAccel(WMScreen * scr, float accel, int threshold) { diff --git a/WPrefs.app/WPrefs.h b/WPrefs.app/WPrefs.h index 6c7b90f6..2987abfc 100644 --- a/WPrefs.app/WPrefs.h +++ b/WPrefs.app/WPrefs.h @@ -115,6 +115,10 @@ void SetSpeedForKey(int speed, const char *defaultName); void AddDeadChildHandler(pid_t pid, void (*handler)(void*), void *data); +/* ---[ xmodifier.c ] ---------------------------------------------------- */ +int ModifierFromKey(Display * dpy, char *key); + + #define FRAME_TOP 105 #define FRAME_LEFT -2 #define FRAME_WIDTH 524 -- 2.11.4.GIT