From b7b97894692b14b7ee1a1e908d7d3a4ddc57cee7 Mon Sep 17 00:00:00 2001 From: rlar Date: Sun, 28 Feb 2016 20:08:24 +0100 Subject: cclinstal() and ccllookup(), char *, to get rid of casts and warnings --- src/sym.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/sym.c') 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; } -- cgit v1.2.3