- remove unneeded NULL casts

from brad
maintainer timed-out
This commit is contained in:
jasper 2011-07-10 13:31:55 +00:00
parent e4b4ebc200
commit 74a4d4d43d
4 changed files with 2 additions and 38 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.192 2011/07/02 23:10:25 edd Exp $
# $OpenBSD: Makefile,v 1.193 2011/07/10 13:31:55 jasper Exp $
# May not be hard to add more.
ONLY_FOR_ARCHS = alpha amd64 arm i386 mips64 mips64el powerpc sparc64
@ -13,7 +13,7 @@ SUBST_VARS += PREFIX CONFDIR
# Distfiles must be hand-rolled, see README
N = mplayer
DISTNAME = mplayer-${V}
REVISION = 8
REVISION = 9
CATEGORIES = x11 multimedia

View File

@ -1,12 +0,0 @@
$OpenBSD: patch-command_c,v 1.4 2011/03/29 20:04:41 edd Exp $
--- command.c.orig Thu Jan 27 20:51:11 2011
+++ command.c Mon Jan 31 14:18:31 2011
@@ -3375,7 +3375,7 @@ int run_command(MPContext *mpctx, mp_cmd_t *cmd)
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

View File

@ -1,12 +0,0 @@
$OpenBSD: patch-libmenu_menu_console_c,v 1.3 2010/11/08 21:25:44 edd Exp $
--- libmenu/menu_console.c.orig Sun Oct 24 11:11:55 2010
+++ libmenu/menu_console.c Sun Oct 24 11:12:56 2010
@@ -321,7 +321,7 @@ static int run_shell_cmd(menu_t* menu, char* cmd) {
dup2(in[0],0);
dup2(out[1],1);
dup2(err[1],2);
- execl("/bin/sh","sh","-c",cmd,(void*)NULL);
+ execl("/bin/sh","sh","-c",cmd,(char *) NULL);
fprintf(errf,"exec failed : %s\n",strerror(errno));
exit(1);
}

View File

@ -1,12 +0,0 @@
$OpenBSD: patch-mplayer_c,v 1.11 2011/03/29 20:04:41 edd Exp $
--- mplayer.c.orig Thu Mar 3 12:35:16 2011
+++ mplayer.c Thu Mar 3 13:23:39 2011
@@ -815,7 +815,7 @@ static void exit_sighandler(int x){
char spid[20];
snprintf(spid, sizeof(spid), "%i", getppid());
getch2_disable(); // allow terminal to work properly with gdb
- if (execlp("gdb", "gdb", prog_path, spid, "-ex", "bt", NULL) == -1)
+ if (execlp("gdb", "gdb", prog_path, spid, "-ex", "bt", (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");