Don't use const for non-pointer API parameters

This commit is contained in:
Sam Lantinga 2024-10-01 21:02:50 -07:00 committed by Ryan C. Gordon
parent d2b2a752ce
commit d5fe6dd627
2 changed files with 2 additions and 2 deletions

View file

@ -232,7 +232,7 @@ bool SDLCALL SDLTest_CommonInit(SDLTest_CommonState *state);
* *
* \returns false if app should quit, true otherwise. * \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. * Print the details of an event.

View file

@ -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; int i = 1;
while (i < argc) { while (i < argc) {