[retro-gtk] environement: Add a missing const modifier
- From: Adrien Plazas <aplazas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [retro-gtk] environement: Add a missing const modifier
- Date: Sun, 20 Dec 2020 09:23:57 +0000 (UTC)
commit 51a29bf4831a1925f364e3b17400f0c400578573
Author: Adrien Plazas <kekun plazas laposte net>
Date: Sun Dec 20 09:51:08 2020 +0100
environement: Add a missing const modifier
Setter environment commands have const values.
retro-runner/retro-environment.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/retro-runner/retro-environment.c b/retro-runner/retro-environment.c
index 16fc47f..a5adccb 100644
--- a/retro-runner/retro-environment.c
+++ b/retro-runner/retro-environment.c
@@ -553,8 +553,8 @@ set_rotation (RetroCore *self,
}
static gboolean
-set_support_no_game (RetroCore *self,
- bool *support_no_game)
+set_support_no_game (RetroCore *self,
+ const bool *support_no_game)
{
retro_debug ("Set support no game: %s", TRUENESS (*support_no_game));
@@ -685,7 +685,7 @@ environment_core_command (RetroCore *self,
return set_rotation (self, (RetroRotation *) data);
case RETRO_ENVIRONMENT_SET_SUPPORT_NO_GAME:
- return set_support_no_game (self, (bool *) data);
+ return set_support_no_game (self, (const bool *) data);
case RETRO_ENVIRONMENT_SET_SYSTEM_AV_INFO:
return set_system_av_info (self, (RetroSystemAvInfo *) data);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]