Skip to content

Commit 4804dbf

Browse files
authored
Update mmhash.c
Add const to fix compiler warning
1 parent 2fbc960 commit 4804dbf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libnfdump/maxmind/mmhash.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ void LookupAS(char *asString) {
480480
if (as == 0 || as > 0xFFFFFFFFUL || as < 0) {
481481
printf("Invalid AS number: %s: %s\n", asString, strerror(errno));
482482
} else {
483-
char *asOrg = LookupASorg(as);
483+
const char *asOrg = LookupASorg(as);
484484
if (asOrg == NULL)
485485
printf("No DB available!\n");
486486
else

0 commit comments

Comments
 (0)