Skip to content

Commit

Permalink
Update mmhash.c
Browse files Browse the repository at this point in the history
Add const to fix compiler warning
  • Loading branch information
phaag authored Jul 22, 2024
1 parent 2fbc960 commit 4804dbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libnfdump/maxmind/mmhash.c
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ void LookupAS(char *asString) {
if (as == 0 || as > 0xFFFFFFFFUL || as < 0) {
printf("Invalid AS number: %s: %s\n", asString, strerror(errno));
} else {
char *asOrg = LookupASorg(as);
const char *asOrg = LookupASorg(as);
if (asOrg == NULL)
printf("No DB available!\n");
else
Expand Down

0 comments on commit 4804dbf

Please sign in to comment.