summaryrefslogtreecommitdiff
path: root/misc.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 /misc.c
parente8ffa513a109209849b11a3c608356cc28314a8e (diff)
downloadxorg-app-xkbcomp-829cb75130d1edd88fa1d33e277f49167daedacf.tar.gz
Fixed a bunch of const correctness bugs.
Diffstat (limited to 'misc.c')
-rw-r--r--misc.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/misc.c b/misc.c
index 1d6f7b4..91688f7 100644
--- a/misc.c
+++ b/misc.c
@@ -111,7 +111,7 @@ int oldLine = lineNum;
/***====================================================================***/
int
-ReportNotArray(char *type,char *field,char *name)
+ReportNotArray(const char *type, const char *field, const char *name)
{
ERROR2("The %s %s field is not an array\n",type,field);
ACTION1("Ignoring illegal assignment in %s\n",name);
@@ -119,7 +119,7 @@ ReportNotArray(char *type,char *field,char *name)
}
int
-ReportShouldBeArray(char *type,char *field,char *name)
+ReportShouldBeArray(const char *type, const char *field, char *name)
{
ERROR2("Missing subscript for %s %s\n",type,field);
ACTION1("Ignoring illegal assignment in %s\n",name);
@@ -127,7 +127,8 @@ ReportShouldBeArray(char *type,char *field,char *name)
}
int
-ReportBadType(char *type,char *field,char *name,char *wanted)
+ReportBadType(const char *type, const char *field,
+ const char *name, const char *wanted)
{
ERROR3("The %s %s field must be a %s\n",type,field,wanted);
ACTION1("Ignoring illegal assignment in %s\n",name);
@@ -143,7 +144,7 @@ ReportBadIndexType(char *type,char *field,char *name,char *wanted)
}
int
-ReportBadField(char *type,char *field,char *name)
+ReportBadField(const char *type, const char *field, const char *name)
{
ERROR3("Unknown %s field %s in %s\n",type,field,name);
ACTION1("Ignoring assignment to unknown field in %s\n",name);