summaryrefslogtreecommitdiff
path: root/xkbcomp.c
diff options
context:
space:
mode:
authorTilman Sauerbeck <tilman@code-monkey.de>2007-09-23 20:15:13 +0200
committerTilman Sauerbeck <tilman@code-monkey.de>2007-09-23 20:15:13 +0200
commit829cb75130d1edd88fa1d33e277f49167daedacf (patch)
tree1eac332bfee7048c57a0b15349dc70a6b821a2c1 /xkbcomp.c
parente8ffa513a109209849b11a3c608356cc28314a8e (diff)
Fixed a bunch of const correctness bugs.
Diffstat (limited to 'xkbcomp.c')
-rw-r--r--xkbcomp.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/xkbcomp.c b/xkbcomp.c
index f54f4f0..c55994b 100644
--- a/xkbcomp.c
+++ b/xkbcomp.c
@@ -76,7 +76,7 @@
#define INPUT_XKB 1
#define INPUT_XKM 2
-static char *fileTypeExt[] = {
+static const char *fileTypeExt[] = {
"XXX",
"xkm",
"h",
@@ -721,9 +721,8 @@ Status status;
}
if (inputFile!=NULL) {
if (uStringEqual(inputFile,"-")) {
- static char *in= "stdin";
file= stdin;
- inputFile= in;
+ inputFile= "stdin";
}
else {
file= fopen(inputFile,"r");