From 27319006329a045eb0a5a5de49bf104bdbb75e3f Mon Sep 17 00:00:00 2001 From: Lee Salzman Date: Wed, 14 May 2008 20:06:47 +0000 Subject: [PATCH] gcc warning fxi git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1970 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/menus.cpp | 5 +++-- source/src/protos.h | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/source/src/menus.cpp b/source/src/menus.cpp index cbf35ddc..ac9305f9 100644 --- a/source/src/menus.cpp +++ b/source/src/menus.cpp @@ -15,7 +15,7 @@ void menuset(void *m) if((curmenu = (gmenu *)m)) curmenu->open(); } -void showmenu(char *name) +void showmenu(const char *name) { if(!name) { @@ -769,4 +769,5 @@ void refreshapplymenu(void *menu, bool init) m->items.add(new mitemtext(m, newstring("Yes"), newstring("resetgl"), NULL, NULL)); m->items.add(new mitemtext(m, newstring("No"), newstring("echo [..restart AssaultCube to apply the new settings]"), NULL, NULL)); m->menusel = m->items.length()-2; // select OK -} \ No newline at end of file +} + diff --git a/source/src/protos.h b/source/src/protos.h index b6663037..a3454b57 100644 --- a/source/src/protos.h +++ b/source/src/protos.h @@ -84,7 +84,7 @@ extern void *addmenu(const char *name, const char *title = NULL, bool allowinput extern void rendermenumdl(); extern void menuset(void *m); extern void menuselect(void *menu, int sel); -extern void showmenu(char *name); +extern void showmenu(const char *name); extern void addchange(const char *desc); extern void refreshapplymenu(void *menu, bool init);