From b62afc5174eb936d74cd24af0658f3857a847c3f Mon Sep 17 00:00:00 2001 From: Antti K Date: Tue, 29 Jul 2014 16:08:25 +0200 Subject: Fix indentation Consistent 4-space everywhere. There were previously either 2 or 3, sometimes funky. --- xkbcat.c | 148 +++++++++++++++++++++++++++++++-------------------------------- 1 file changed, 74 insertions(+), 74 deletions(-) diff --git a/xkbcat.c b/xkbcat.c index 2596e86..3d9682c 100644 --- a/xkbcat.c +++ b/xkbcat.c @@ -6,13 +6,13 @@ A rather simplified version of `xspy` by Jon A. Maxwell (JAM) as modified for easier physical key monitoring by Antti Korpi . -*/ + */ /* xspy polls the keyboard to determine the state of all keys on the keyboard. By comparing results it determines which key has been pressed. In this way it echos to the user all physical keys typed. -*/ + */ #include #include @@ -37,68 +37,68 @@ int printKeyUps = FALSE; char *KeyCodeToStr(int code, int down); int usage() { - printf("%s\n%s\n%s\n%s\n", - "USAGE: xspy [-display ] [-delay ] [-up]", - " display X display to target", - " delay polling frequency (.1 sec is 100000 usecs)", - " up also prints on key-ups"); - exit(0); + printf("%s\n%s\n%s\n%s\n", + "USAGE: xspy [-display ] [-delay ] [-up]", + " display X display to target", + " delay polling frequency (.1 sec is 100000 usecs)", + " up also prints on key-ups"); + exit(0); } int main(int argc, char *argv[]) { - char *hostname=DEFAULT_DISPLAY, - *char_ptr, - buf1[32], buf2[32], - *keys, - *saved; - int i, delay=DEFAULT_DELAY; - - /* get args */ - for (i=1; i