From a4311f5cb18a8fec4e402ea50969e9eebb44aea3 Mon Sep 17 00:00:00 2001 From: terminx Date: Thu, 8 Nov 2012 22:09:00 +0000 Subject: [PATCH] Fix warning from r3128 git-svn-id: https://svn.eduke32.com/eduke32@3133 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/source/config.c | 5 ++--- polymer/eduke32/source/config.h | 2 +- polymer/eduke32/source/menus.c | 4 ++-- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/polymer/eduke32/source/config.c b/polymer/eduke32/source/config.c index 4d6479f7e..e662492ea 100644 --- a/polymer/eduke32/source/config.c +++ b/polymer/eduke32/source/config.c @@ -145,10 +145,9 @@ const char *CONFIG_AnalogNumToName(int32_t func) =================== */ -void CONFIG_SetDefaultKeys(int32_t type) +void CONFIG_SetDefaultKeys(const char (*keyptr)[MAXGAMEFUNCLEN]) { int32_t i,f; - const char (*keyptr)[MAXGAMEFUNCLEN] = type ? oldkeydefaults : keydefaults; Bmemset(ud.config.KeyboardKeys, 0xff, sizeof(ud.config.KeyboardKeys)); @@ -271,7 +270,7 @@ void CONFIG_SetDefaults(void) // JBF 20031211 - CONFIG_SetDefaultKeys(0); + CONFIG_SetDefaultKeys((const char (*)[MAXGAMEFUNCLEN])keydefaults); memset(ud.config.MouseFunctions, -1, sizeof(ud.config.MouseFunctions)); for (i=0; i=0)