projects
/
platform
/
upstream
/
libxkbcommon.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6a3b38b
)
makekeys: make buf local to main()
author
Ran Benita
<ran234@gmail.com>
Fri, 24 Feb 2012 13:53:08 +0000
(15:53 +0200)
committer
Ran Benita
<ran234@gmail.com>
Sat, 25 Feb 2012 09:59:56 +0000
(11:59 +0200)
All the functions already accept it as a parameter. This clears -Wshadow
warnings.
Signed-off-by: Ran Benita <ran234@gmail.com>
makekeys/makekeys.c
patch
|
blob
|
history
diff --git
a/makekeys/makekeys.c
b/makekeys/makekeys.c
index 21d70f5f79e7ec8563243b932cfbabe44e84821a..751b719efc83388dece816b9675dd4485508ad09 100644
(file)
--- a/
makekeys/makekeys.c
+++ b/
makekeys/makekeys.c
@@
-50,7
+50,6
@@
static char tab[KTNUM];
static unsigned short offsets[KTNUM];
static unsigned short indexes[KTNUM];
static KeySym values[KTNUM];
-static char buf[1024];
/*
* XFree86 special action keys - for some reason, these have an
@@
-181,6
+180,7
@@
main(int argc, char *argv[])
int num_found;
KeySym val;
char key[128];
+ char buf[1024];
while (fgets(buf, sizeof(buf), stdin)) {