Browse Source

Don't use const for non-pointer API parameters

Sam Lantinga 6 months ago
parent
commit
d5fe6dd627
2 changed files with 2 additions and 2 deletions
  1. 1 1
      include/SDL3/SDL_test_common.h
  2. 1 1
      src/test/SDL_test_common.c

+ 1 - 1
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.

+ 1 - 1
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) {