From 3d100df36f29acbaf6fd30a3ea3fb5f08620f272 Mon Sep 17 00:00:00 2001 From: Sylvain Becker Date: Wed, 30 Oct 2019 15:43:49 +0100 Subject: [PATCH] Readability: remove const-qualifation from function declaration const-qualification of parameters only has an effect in function definitions --- src/SDL.c | 2 +- src/SDL_assert.c | 4 ++-- src/dynapi/SDL_dynapi.c | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/SDL.c b/src/SDL.c index 2596d5561..931564330 100644 --- a/src/SDL.c +++ b/src/SDL.c @@ -56,7 +56,7 @@ extern int SDL_HelperWindowDestroy(void); /* This is not declared in any header, although it is shared between some parts of SDL, because we don't want anything calling it without an extremely good reason. */ -extern SDL_NORETURN void SDL_ExitProcess(const int exitcode); +extern SDL_NORETURN void SDL_ExitProcess(int exitcode); SDL_NORETURN void SDL_ExitProcess(const int exitcode) { #ifdef __WIN32__ diff --git a/src/SDL_assert.c b/src/SDL_assert.c index 3243a765b..dcac246f4 100644 --- a/src/SDL_assert.c +++ b/src/SDL_assert.c @@ -121,10 +121,10 @@ static void SDL_GenerateAssertionReport(void) parts of SDL, because we don't want anything calling it without an extremely good reason. */ #if defined(__WATCOMC__) -extern void SDL_ExitProcess(const int exitcode); +extern void SDL_ExitProcess(int exitcode); #pragma aux SDL_ExitProcess aborts; #endif -extern SDL_NORETURN void SDL_ExitProcess(const int exitcode); +extern SDL_NORETURN void SDL_ExitProcess(int exitcode); #if defined(__WATCOMC__) diff --git a/src/dynapi/SDL_dynapi.c b/src/dynapi/SDL_dynapi.c index 23be8aa9d..fa4e40d67 100644 --- a/src/dynapi/SDL_dynapi.c +++ b/src/dynapi/SDL_dynapi.c @@ -280,10 +280,10 @@ static void dynapi_warn(const char *msg) parts of SDL, because we don't want anything calling it without an extremely good reason. */ #if defined(__WATCOMC__) -void SDL_ExitProcess(const int exitcode); +void SDL_ExitProcess(int exitcode); #pragma aux SDL_ExitProcess aborts; #endif -SDL_NORETURN void SDL_ExitProcess(const int exitcode); +SDL_NORETURN void SDL_ExitProcess(int exitcode); static void