diff --git a/include/SDL3/SDL_test_common.h b/include/SDL3/SDL_test_common.h index 0e7e1accdb..aeffeb93b5 100644 --- a/include/SDL3/SDL_test_common.h +++ b/include/SDL3/SDL_test_common.h @@ -232,7 +232,7 @@ bool SDLCALL SDLTest_CommonInit(SDLTest_CommonState *state); * * \returns false if app should quit, true otherwise. */ -bool SDLCALL SDLTest_CommonDefaultArgs(SDLTest_CommonState *state, const int argc, char **argv); +bool SDLCALL SDLTest_CommonDefaultArgs(SDLTest_CommonState *state, int argc, char **argv); /** * Print the details of an event. diff --git a/src/test/SDL_test_common.c b/src/test/SDL_test_common.c index e3efb17334..aed0f644d0 100644 --- a/src/test/SDL_test_common.c +++ b/src/test/SDL_test_common.c @@ -787,7 +787,7 @@ void SDLTest_CommonLogUsage(SDLTest_CommonState *state, const char *argv0, const } } -bool SDLTest_CommonDefaultArgs(SDLTest_CommonState *state, const int argc, char **argv) +bool SDLTest_CommonDefaultArgs(SDLTest_CommonState *state, int argc, char **argv) { int i = 1; while (i < argc) {