aboutsummaryrefslogtreecommitdiff
path: root/src/hyper/lex.c
diff options
context:
space:
mode:
authordos-reis <gdr@axiomatics.org>2010-08-08 17:37:46 +0000
committerdos-reis <gdr@axiomatics.org>2010-08-08 17:37:46 +0000
commit13112984fd32d4684959a923497a9a476981283e (patch)
tree05c9b0a7efa76555aec9b49abf9203f4c1d462bf /src/hyper/lex.c
parent45103d600768000e5c242fe478ff9468526bb8f6 (diff)
downloadopen-axiom-13112984fd32d4684959a923497a9a476981283e.tar.gz
* hyper/ex2ht.c (strPrefix): Be const-correct.
* hyper/htinp.c (get_graph_output): Likewise. (print_paste): Likewise. (print_graph_paste): Likewise. * hyper/initx.c (get_color): Likewise. * hyper/keyin.c (handle_key): Likewise. * hyper/lex.c (token_table): Likewise. * hyper/macro.c (number): Likewise. * hyper/mem.c (alloc_page): Likewise. * hyper/parse-aux.c (make_special_page): Likewise. (is_number): Likewise. * hyper/parse-types.c (errmess): Likewise. * lib/sockio-c.c (oa_socket_read): Cast to second argument to appropriate type. (oa_socket_read_byte): Likewise.
Diffstat (limited to 'src/hyper/lex.c')
-rw-r--r--src/hyper/lex.c4
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;