eggdrop icon indicating copy to clipboard operation
eggdrop copied to clipboard

Fix -Wformat compiler warning

Open michaelortmann opened this issue 11 months ago • 0 comments

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

michaelortmann avatar Mar 15 '25 08:03 michaelortmann