summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorGravatar Antti K2014-07-29 16:05:23 +0200
committerGravatar Antti K2014-07-29 16:05:23 +0200
commitc8179ae3570c300598800288449e78b60099d7e0 (patch)
tree5f57783ee306794877589bb626f34d613dc6345a
parentfc6d56f1a9ce482f8bfd0252842846da68a9d753 (diff)
downloadxkbcat-c8179ae3570c300598800288449e78b60099d7e0.tar.gz
xkbcat-c8179ae3570c300598800288449e78b60099d7e0.zip
Clearer variable name
-rw-r--r--xkbcat.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/xkbcat.c b/xkbcat.c
index 795f66c..2596e86 100644
--- a/xkbcat.c
+++ b/xkbcat.c
@@ -32,7 +32,7 @@
/* Global variables */
Display *disp;
-int PrintUp = FALSE;
+int printKeyUps = FALSE;
char *KeyCodeToStr(int code, int down);
@@ -64,7 +64,7 @@ int main(int argc, char *argv[]) {
i++;
delay=atoi(argv[i]);
}
- else if (!strcmp(argv[i], "-up")) {PrintUp =TRUE;}
+ else if (!strcmp(argv[i], "-up")) {printKeyUps =TRUE;}
else usage();
}
@@ -87,7 +87,7 @@ int main(int argc, char *argv[]) {
if (BIT(keys, i)!=BIT(saved, i)) {
register char *str;
str=(char *)KeyCodeToStr(i, BIT(keys, i));
- if (BIT(keys, i)!=0 || PrintUp) printf("%s\n",str);
+ if (BIT(keys, i)!=0 || printKeyUps) printf("%s\n",str);
fflush(stdout); /* in case user is writing to a pipe */
}
}