eggdrop
eggdrop copied to clipboard
Fix -Wformat compiler warning
Found by: michaelortmann Patch by: michaelortmann Fixes:
One-line summary:
Additional description (if needed): Fixes the following 2 compiler warnings:
language.c:235:33: warning: format '%x' expects argument of type 'unsigned int *', but argument 3 has type 'int *' [-Wformat=]
language.c:535:21: warning: format '%x' expects argument of type 'unsigned int *', but argument 3 has type 'int *' [-Wformat=]
While at it remove a short for loop (32 instead of sizeof langtab = 64). global static is always initialized to zero.
misc.c:resolve_help() is only used in misc.c, so this PR also makes this function static.
Test cases demonstrating functionality (if applicable): No functional change