aboutsummaryrefslogtreecommitdiffstats
path: root/awkgram.c
diff options
context:
space:
mode:
Diffstat (limited to 'awkgram.c')
-rw-r--r--awkgram.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/awkgram.c b/awkgram.c
index 41a2995c..cfed73cd 100644
--- a/awkgram.c
+++ b/awkgram.c
@@ -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;
}