diff options
| author | 2014-07-29 16:05:23 +0200 | |
|---|---|---|
| committer | 2014-07-29 16:05:23 +0200 | |
| commit | c8179ae3570c300598800288449e78b60099d7e0 (patch) | |
| tree | 5f57783ee306794877589bb626f34d613dc6345a | |
| parent | fc6d56f1a9ce482f8bfd0252842846da68a9d753 (diff) | |
| download | xkbcat-c8179ae3570c300598800288449e78b60099d7e0.tar.gz xkbcat-c8179ae3570c300598800288449e78b60099d7e0.zip | |
Clearer variable name
| -rw-r--r-- | xkbcat.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 */ } } |
