Commit fdf7e8f6db9b48f65dab40105fee86b01850fd8d

Ran Benita 2012-02-24T15:53:08

makekeys: make buf local to main() All the functions already accept it as a parameter. This clears -Wshadow warnings. Signed-off-by: Ran Benita <ran234@gmail.com>

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
diff --git a/makekeys/makekeys.c b/makekeys/makekeys.c
index 21d70f5..751b719 100644
--- 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)) {