Add typecast to execv call.
Declare function menu_dump.
This commit is contained in:
@@ -327,7 +327,7 @@ int exec_command(MenuEntry *cmd)
|
|||||||
switch (fork()) {
|
switch (fork()) {
|
||||||
case 0:
|
case 0:
|
||||||
/* We're the child. Execute the command. */
|
/* We're the child. Execute the command. */
|
||||||
execv(argv[0], argv);
|
execv(argv[0], (char **) argv);
|
||||||
exit(0);
|
exit(0);
|
||||||
break;
|
break;
|
||||||
case -1:
|
case -1:
|
||||||
|
|||||||
@@ -46,4 +46,5 @@ int menu_sock_send(MenuEntry *me, MenuEntry *parent, int sock);
|
|||||||
MenuEntry *menu_find_by_id(MenuEntry *me, int id);
|
MenuEntry *menu_find_by_id(MenuEntry *me, int id);
|
||||||
const char *menu_command(MenuEntry *me);
|
const char *menu_command(MenuEntry *me);
|
||||||
void menu_free(MenuEntry *me);
|
void menu_free(MenuEntry *me);
|
||||||
|
void menu_dump(MenuEntry *me);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user