summaryrefslogtreecommitdiff
path: root/src/sym.c
diff options
context:
space:
mode:
authorrlar <rlar>2016-02-28 20:08:24 +0100
committerWill Estes <westes575@gmail.com>2016-02-29 20:07:47 -0500
commitb7b97894692b14b7ee1a1e908d7d3a4ddc57cee7 (patch)
treed86a3097dd47b1439aef31a1f20808ec80145470 /src/sym.c
parent2532a957a6da4190eaf5d4dc4affefa26c2ba197 (diff)
cclinstal() and ccllookup(), char *, to get rid of casts and warnings
Diffstat (limited to 'src/sym.c')
-rw-r--r--src/sym.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sym.c b/src/sym.c
index 241256e..97386eb 100644
--- a/src/sym.c
+++ b/src/sym.c
@@ -111,7 +111,7 @@ static int addsym (char sym[], char *str_def, int int_def, hash_table table, int
/* cclinstal - save the text of a character class */
-void cclinstal (unsigned char ccltxt[], int cclnum)
+void cclinstal (char ccltxt[], int cclnum)
{
/* We don't bother checking the return status because we are not
* called unless the symbol is new.
@@ -127,9 +127,9 @@ void cclinstal (unsigned char ccltxt[], int cclnum)
* Returns 0 if there's no CCL associated with the text.
*/
-int ccllookup (unsigned char ccltxt[])
+int ccllookup (char ccltxt[])
{
- return findsym ((char *) ccltxt, ccltab, CCL_HASH_SIZE)->int_val;
+ return findsym (ccltxt, ccltab, CCL_HASH_SIZE)->int_val;
}