Add typecast to execv call.

Declare function menu_dump.
This commit is contained in:
mmdolze
2006-09-21 05:29:06 +00:00
parent 6d3020af58
commit 35efb1df57
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -327,7 +327,7 @@ int exec_command(MenuEntry *cmd)
switch (fork()) {
case 0:
/* We're the child. Execute the command. */
execv(argv[0], argv);
execv(argv[0], (char **) argv);
exit(0);
break;
case -1:
+1
View File
@@ -46,4 +46,5 @@ int menu_sock_send(MenuEntry *me, MenuEntry *parent, int sock);
MenuEntry *menu_find_by_id(MenuEntry *me, int id);
const char *menu_command(MenuEntry *me);
void menu_free(MenuEntry *me);
void menu_dump(MenuEntry *me);