- remove unnecessary NULL casts

This commit is contained in:
jasper 2011-04-16 21:28:35 +00:00
parent 591a251cf1
commit 1043c5cc0a
5 changed files with 5 additions and 40 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.57 2011/04/07 08:09:35 ajacoutot Exp $
# $OpenBSD: Makefile,v 1.58 2011/04/16 21:28:35 jasper Exp $
COMMENT= portable library for obtaining system information
@ -6,7 +6,7 @@ GNOME_VERSION= 2.28.3
GNOME_PROJECT= libgtop
PKGNAME= libgtop2-${VERSION}
REVISION= 0
REVISION= 1
SHARED_LIBS= gtop-2.0 9.0 # .9.0

View File

@ -1,12 +0,0 @@
$OpenBSD: patch-lib_open_c,v 1.6 2008/02/09 16:52:25 ajacoutot Exp $
--- lib/open.c.orig Sun Sep 16 15:04:03 2007
+++ lib/open.c Fri Dec 28 18:53:16 2007
@@ -110,7 +110,7 @@ glibtop_open_l (glibtop *server, const char *program_n
close (server->input [0]); close (server->output [1]);
dup2 (server->input [1], 1);
dup2 (server->output [0], 0);
- execl (LIBGTOP_SERVER, "libgtop-server", NULL);
+ execl (LIBGTOP_SERVER, "libgtop-server", (void *)NULL);
glibtop_error_io_r (server, "execl (%s)",
LIBGTOP_SERVER);
_exit (2);

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.99 2011/03/09 18:51:49 ajacoutot Exp $
# $OpenBSD: Makefile,v 1.100 2011/04/16 21:28:35 jasper Exp $
SHARED_ONLY= Yes
@ -7,7 +7,7 @@ COMMENT= GNOME display manager
GNOME_PROJECT= gdm
GNOME_VERSION= 2.20.11
REVISION= 19
REVISION= 20
HOMEPAGE= http://projects.gnome.org/gdm/

View File

@ -1,15 +1,6 @@
$OpenBSD: patch-daemon_slave_c,v 1.12 2009/03/19 08:26:42 ajacoutot Exp $
$OpenBSD: patch-daemon_slave_c,v 1.13 2011/04/16 21:28:35 jasper Exp $
--- daemon/slave.c.orig Thu Mar 19 05:59:27 2009
+++ daemon/slave.c Thu Mar 19 09:01:37 2009
@@ -2857,7 +2857,7 @@ gdm_slave_greeter (void)
exec_command (LIBEXECDIR "/gdmlogin", NULL);
- VE_IGNORE_EINTR (execl (LIBEXECDIR "/gdmlogin", LIBEXECDIR "/gdmlogin", NULL));
+ VE_IGNORE_EINTR (execl (LIBEXECDIR "/gdmlogin", LIBEXECDIR "/gdmlogin", (void *)NULL));
gdm_errorgui_error_box (d,
GTK_MESSAGE_ERROR,
@@ -3594,6 +3594,7 @@ session_child_run (struct passwd *pwent,
GString *fullexec = NULL;
const char *shell = NULL;

View File

@ -1,14 +0,0 @@
$OpenBSD: patch-gui_greeter_greeter_c,v 1.8 2008/11/21 17:43:02 jasper Exp $
--- gui/greeter/greeter.c.orig Mon Jun 30 19:53:05 2008
+++ gui/greeter/greeter.c Tue Nov 18 22:55:23 2008
@@ -1527,8 +1527,8 @@ main (int argc, char *argv[])
gtk_dialog_run (GTK_DIALOG (dialog));
gtk_widget_destroy (dialog);
- execl (LIBEXECDIR "/gdmlogin", LIBEXECDIR "/gdmlogin", NULL);
- execlp ("gdmlogin", "gdmlogin", NULL);
+ execl (LIBEXECDIR "/gdmlogin", LIBEXECDIR "/gdmlogin", (void *)NULL);
+ execlp ("gdmlogin", "gdmlogin", (void *)NULL);
dialog = hig_dialog_new (NULL /* parent */,
GTK_DIALOG_MODAL /* flags */,