From 7bf7b120fc6c34164dfdf07938d7de58fd7f7413 Mon Sep 17 00:00:00 2001 From: Antti K Date: Sat, 26 Jul 2014 14:31:27 +0200 Subject: Clean up Stop compiler complaining about implicit usleep with explicit include. Neater variable declaration-initialisation on one line. --- xspy.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/xspy.c b/xspy.c index baaddd1..5025a70 100644 --- a/xspy.c +++ b/xspy.c @@ -22,6 +22,7 @@ #include #include #include +#include #define VERSION "1.0c" #define DEFAULT_DISPLAY ":0" @@ -118,9 +119,7 @@ int main(int argc, char *argv[]) { char *KeyCodeToStr(int code, int down) { static char *str, buf[KEYSYM_STRLEN+1]; - KeySym keysym; - - keysym=XKeycodeToKeysym(disp, code, 0); + KeySym keysym = XKeycodeToKeysym(disp, code, 0); if (NoSymbol==keysym) return ""; /* convert keysym to a string, copy it to a local area */ -- cgit v1.3-2-g0d8e