declare constant function parameters const (as well as constant function return values)
This commit is contained in:
1 parent
f34c246200
commit
cc2c84a7b8
21 files changed
+78
-68
No files matched your search
@@ -21,7 +21,7 @@
|
||||
#include "menu.h"
|
||||
|
||||
/* recursively read the menu hierarchy */
|
||||
MenuEntry *menu_read(MenuEntry *parent, char *name)
|
||||
MenuEntry *menu_read(MenuEntry *parent, const char *name)
|
||||
{
|
||||
static int id = 0;
|
||||
|
||||
@@ -50,7 +50,7 @@ MenuEntry *menu_read(MenuEntry *parent, char *name)
|
||||
|
||||
if (config_get_string(name, "Entry", 0, NULL) != NULL) {
|
||||
MenuEntry **addr = &me->entries;
|
||||
char *entryname;
|
||||
const char *entryname;
|
||||
int index = 0;
|
||||
|
||||
// it is a sub-menu
|
||||
|
||||
Reference in new issue
Block a user