declare constant function parameters const (as well as constant function return values)

This commit is contained in:
marschap
2006-09-12 16:23:24 +00:00
parent f34c246200
commit cc2c84a7b8
21 changed files with 78 additions and 68 deletions
+2 -2
View File
@@ -133,7 +133,7 @@ joy_init (Driver *drvthis)
for (i = 0; i < p->axes; i++) {
char mapkey[50];
char *mapval;
const char *mapval;
snprintf(mapkey, sizeof(mapkey), "Map_Axis%dneg", i+1);
mapval = drvthis->config_get_string(drvthis->name, mapkey, 0, NULL);
@@ -154,7 +154,7 @@ joy_init (Driver *drvthis)
for (i = 0; i < p->buttons; i++) {
char mapkey[50];
char *mapval;
const char *mapval;
snprintf(mapkey, sizeof(mapkey), "Map_Button%d", i+1);
mapval = drvthis->config_get_string(drvthis->name, mapkey, 0, NULL);