diff options
Diffstat (limited to 'awkgram.c')
-rw-r--r-- | awkgram.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -4459,7 +4459,7 @@ struct token { /* tokcompare --- lexicographically compare token names for sorting */ static int -tokcompare(void *l, void *r) +tokcompare(const void *l, const void *r) { struct token *lhs, *rhs; @@ -8504,7 +8504,8 @@ check_special(const char *name) static int did_sort = FALSE; if (! did_sort) { - qsort(tokentab, sizeof(tokentab) / sizeof(tokentab[0]), + qsort((void *) tokentab, + sizeof(tokentab) / sizeof(tokentab[0]), sizeof(tokentab[0]), tokcompare); did_sort = TRUE; } |