Turn "char *" into "const char *" for all command parser functions.

This commit is contained in:
Ingo Bürk
2015-09-27 23:42:58 +02:00
parent c7ca6e1b41
commit 6cd6f43d09
7 changed files with 86 additions and 87 deletions

View File

@ -133,10 +133,8 @@ static void push_long(const char *identifier, long num) {
exit(1);
}
// XXX: ideally, this would be const char. need to check if that works with all
// called functions.
// TODO move to a common util
static char *get_string(const char *identifier) {
static const char *get_string(const char *identifier) {
for (int c = 0; c < 10; c++) {
if (stack[c].identifier == NULL)
break;