Codefix: Avoid type-casting function pointer with incorrect type. (#12929)

Make `AutolengthProc` take `int` instead of `void *`, avoiding pointer parameters.
This commit is contained in:
Peter Nelson
2024-09-12 06:49:45 +01:00
committed by GitHub
parent 9631c68ce6
commit 7f5a3eaf83
4 changed files with 8 additions and 8 deletions

View File

@@ -1925,7 +1925,7 @@ void SlGlobList(const SaveLoadTable &slt)
* @param proc The callback procedure that is called
* @param arg The variable that will be used for the callback procedure
*/
void SlAutolength(AutolengthProc *proc, void *arg)
void SlAutolength(AutolengthProc *proc, int arg)
{
assert(_sl.action == SLA_SAVE);