$OpenBSD: patch-mplayer_c,v 1.2 2005/05/09 12:24:38 biorn Exp $
--- mplayer.c.orig	Fri Apr 15 14:14:24 2005
+++ mplayer.c	Wed Apr 20 06:35:55 2005
@@ -584,7 +584,7 @@ static void exit_sighandler(int x){
         gdb_pid = fork();
         mp_msg(MSGT_CPLAYER, MSGL_INFO, "Forked...\n");
         if (gdb_pid == 0) { // We are the child
-          if (execlp("gdb", "gdb", prog_path, spid, NULL) == -1)
+          if (execlp("gdb", "gdb", prog_path, spid, (char *)NULL) == -1)
             mp_msg(MSGT_CPLAYER, MSGL_ERR, "Couldn't start gdb\n");
         } else if (gdb_pid < 0) 
           mp_msg(MSGT_CPLAYER, MSGL_ERR, "Couldn't fork\n");
@@ -3500,7 +3500,7 @@ if (stream->type==STREAMTYPE_DVDNAV && d
     case MP_CMD_RUN : {
 #ifndef __MINGW32__
         if(!fork()) {
-          execl("/bin/sh","sh","-c",cmd->args[0].v.s,NULL);
+          execl("/bin/sh","sh","-c",cmd->args[0].v.s,(char *)NULL);
           exit(0);
         }
 #endif
