diff options
Diffstat (limited to 'src/hyper/lex.c')
-rw-r--r-- | src/hyper/lex.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hyper/lex.c b/src/hyper/lex.c index 3f703f4e..1b828a08 100644 --- a/src/hyper/lex.c +++ b/src/hyper/lex.c @@ -114,7 +114,7 @@ char sock_buf[1024]; /* buffer for socket input */ static HashTable tokenHashTable; /* hash table of parser tokens */ -char* token_table[] = { +const char* token_table[] = { "", /* Dummy token name */ "word", "page", @@ -476,7 +476,7 @@ get_token(void) last_token = 0; token.type = unget_toke.type; strcpy(buffer, unget_toke.id); - free(unget_toke.id); + free((char*) unget_toke.id); token.id = buffer + 1; if (token.type == EOF) return EOF; |