cast NULL sentinel to void * so it is 64bit on alpha & sparc64
This commit is contained in:
parent
de5a1ce02c
commit
4f22812321
12
audio/lopster/patches/patch-src_exec_c
Normal file
12
audio/lopster/patches/patch-src_exec_c
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-src_exec_c,v 1.1 2002/12/29 00:10:48 pvalchev Exp $
|
||||
--- src/exec.c.orig Sat Dec 28 15:37:30 2002
|
||||
+++ src/exec.c Sat Dec 28 15:37:38 2002
|
||||
@@ -402,7 +402,7 @@ static int exec_fire_up(exec_t* exec) {
|
||||
for (i = 3; i < 1024; i++)
|
||||
close(i);
|
||||
|
||||
- execl("/bin/sh", "sh", "-c", exec->command, 0);
|
||||
+ execl("/bin/sh", "sh", "-c", exec->command, (void *)NULL);
|
||||
_exit(-1);
|
||||
default:
|
||||
// parent
|
12
devel/libgtop/patches/patch-lib_open_c
Normal file
12
devel/libgtop/patches/patch-lib_open_c
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-lib_open_c,v 1.1 2002/12/29 00:10:48 pvalchev Exp $
|
||||
--- lib/open.c.orig Sat Dec 28 15:35:34 2002
|
||||
+++ lib/open.c Sat Dec 28 15:35:40 2002
|
||||
@@ -110,7 +110,7 @@ glibtop_open_l (glibtop *server, const c
|
||||
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);
|
21
graphics/gimp/stable/patches/patch-plug-ins_common_bz2_c
Normal file
21
graphics/gimp/stable/patches/patch-plug-ins_common_bz2_c
Normal file
@ -0,0 +1,21 @@
|
||||
$OpenBSD: patch-plug-ins_common_bz2_c,v 1.1 2002/12/29 00:10:47 pvalchev Exp $
|
||||
--- plug-ins/common/bz2.c.orig Sat Dec 28 14:57:07 2002
|
||||
+++ plug-ins/common/bz2.c Sat Dec 28 14:57:21 2002
|
||||
@@ -306,7 +306,7 @@ save_image (gchar *filename,
|
||||
g_message ("bz2: dup2 failed: %s\n", g_strerror (errno));
|
||||
|
||||
/* and bzip2 into it */
|
||||
- execlp ("bzip2", "bzip2", "-cf", tmpname, NULL);
|
||||
+ execlp ("bzip2", "bzip2", "-cf", tmpname, (void *)NULL);
|
||||
g_message ("bz2: exec failed: bzip2: %s\n", g_strerror (errno));
|
||||
g_free (tmpname);
|
||||
_exit (127);
|
||||
@@ -385,7 +385,7 @@ load_image (gchar *filename,
|
||||
g_message ("bz2: dup2 failed: %s\n", g_strerror (errno));
|
||||
|
||||
/* and unzip into it */
|
||||
- execlp ("bzip2", "bzip2", "-cfd", filename, NULL);
|
||||
+ execlp ("bzip2", "bzip2", "-cfd", filename, (void *)NULL);
|
||||
g_message ("bz2: exec failed: bunzip2: %s\n", g_strerror (errno));
|
||||
g_free (tmpname);
|
||||
_exit (127);
|
21
graphics/gimp/stable/patches/patch-plug-ins_common_gz_c
Normal file
21
graphics/gimp/stable/patches/patch-plug-ins_common_gz_c
Normal file
@ -0,0 +1,21 @@
|
||||
$OpenBSD: patch-plug-ins_common_gz_c,v 1.1 2002/12/29 00:10:47 pvalchev Exp $
|
||||
--- plug-ins/common/gz.c.orig Sat Dec 28 14:57:34 2002
|
||||
+++ plug-ins/common/gz.c Sat Dec 28 14:57:49 2002
|
||||
@@ -368,7 +368,7 @@ save_image (gchar *filename,
|
||||
g_message ("gz: dup2 failed: %s\n", g_strerror (errno));
|
||||
|
||||
/* and gzip into it */
|
||||
- execlp ("gzip", "gzip", "-cf", tmpname, NULL);
|
||||
+ execlp ("gzip", "gzip", "-cf", tmpname, (void *)NULL);
|
||||
g_message ("gz: exec failed: gzip: %s\n", g_strerror (errno));
|
||||
g_free (tmpname);
|
||||
_exit(127);
|
||||
@@ -486,7 +486,7 @@ load_image (gchar *filename,
|
||||
}
|
||||
|
||||
/* and unzip into it */
|
||||
- execlp ("gzip", "gzip", "-cfd", filename, NULL);
|
||||
+ execlp ("gzip", "gzip", "-cfd", filename, (void *)NULL);
|
||||
g_message ("gz: exec failed: gunzip: %s\n", g_strerror (errno));
|
||||
g_free (tmpname);
|
||||
_exit(127);
|
12
graphics/gimp/stable/patches/patch-plug-ins_common_mail_c
Normal file
12
graphics/gimp/stable/patches/patch-plug-ins_common_mail_c
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-plug-ins_common_mail_c,v 1.1 2002/12/29 00:10:47 pvalchev Exp $
|
||||
--- plug-ins/common/mail.c.orig Sat Dec 28 14:57:55 2002
|
||||
+++ plug-ins/common/mail.c Sat Dec 28 14:58:01 2002
|
||||
@@ -368,7 +368,7 @@ save_image (gchar *filename,
|
||||
g_message ("mail: dup2 failed: %s\n", g_strerror (errno));
|
||||
}
|
||||
|
||||
- execlp (UUENCODE, UUENCODE, tmpname, filename, NULL);
|
||||
+ execlp (UUENCODE, UUENCODE, tmpname, filename, (void *)NULL);
|
||||
/* What are we doing here? exec must have failed */
|
||||
g_message ("mail: exec failed: uuencode: %s\n", g_strerror (errno));
|
||||
|
12
graphics/gimp/stable/patches/patch-plug-ins_common_url_c
Normal file
12
graphics/gimp/stable/patches/patch-plug-ins_common_url_c
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-plug-ins_common_url_c,v 1.1 2002/12/29 00:10:47 pvalchev Exp $
|
||||
--- plug-ins/common/url.c.orig Sat Dec 28 14:58:06 2002
|
||||
+++ plug-ins/common/url.c Sat Dec 28 14:58:16 2002
|
||||
@@ -189,7 +189,7 @@ load_image (gchar *filename,
|
||||
putenv ("LANG=C");
|
||||
#endif
|
||||
|
||||
- execlp ("wget", "wget", "-T", TIMEOUT, filename, "-O", tmpname, NULL);
|
||||
+ execlp ("wget", "wget", "-T", TIMEOUT, filename, "-O", tmpname, (void *)NULL);
|
||||
g_message ("url: exec() failed: wget: %s", g_strerror (errno));
|
||||
g_free (tmpname);
|
||||
_exit (127);
|
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-plug-ins_webbrowser_webbrowser_c,v 1.1 2002/12/29 00:10:47 pvalchev Exp $
|
||||
--- plug-ins/webbrowser/webbrowser.c.orig Sat Dec 28 14:56:48 2002
|
||||
+++ plug-ins/webbrowser/webbrowser.c Sat Dec 28 14:56:55 2002
|
||||
@@ -229,7 +229,7 @@ start_browser (gchar *prog,
|
||||
|
||||
if ((cpid = fork()) == 0)
|
||||
{
|
||||
- execlp (prog, prog, url, NULL);
|
||||
+ execlp (prog, prog, url, (void *)NULL);
|
||||
exit (1);
|
||||
}
|
||||
|
12
net/lftp/patches/patch-src_Filter_cc
Normal file
12
net/lftp/patches/patch-src_Filter_cc
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-src_Filter_cc,v 1.1 2002/12/29 00:10:48 pvalchev Exp $
|
||||
--- src/Filter.cc.orig Sat Dec 28 15:24:26 2002
|
||||
+++ src/Filter.cc Sat Dec 28 15:25:12 2002
|
||||
@@ -178,7 +178,7 @@ int OutputFilter::getfd()
|
||||
}
|
||||
if(a)
|
||||
execvp(a->a0(),a->GetV());
|
||||
- execl("/bin/sh","sh","-c",name,NULL);
|
||||
+ execl("/bin/sh","sh","-c",name,(void *)NULL);
|
||||
fprintf(stderr,_("execl(/bin/sh) failed: %s\n"),strerror(errno));
|
||||
fflush(stderr);
|
||||
_exit(1);
|
12
net/lftp/patches/patch-src_PtyShell_cc
Normal file
12
net/lftp/patches/patch-src_PtyShell_cc
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-src_PtyShell_cc,v 1.3 2002/12/29 00:10:48 pvalchev Exp $
|
||||
--- src/PtyShell.cc.orig Sat Dec 28 15:24:54 2002
|
||||
+++ src/PtyShell.cc Sat Dec 28 15:25:28 2002
|
||||
@@ -114,7 +114,7 @@ int PtyShell::getfd()
|
||||
putenv((char*)"LANGUAGE=C");
|
||||
if(a)
|
||||
execvp(a->a0(),a->GetV());
|
||||
- execl("/bin/sh","sh","-c",name,NULL);
|
||||
+ execl("/bin/sh","sh","-c",name,(void *)NULL);
|
||||
fprintf(stderr,_("execl(/bin/sh) failed: %s\n"),strerror(errno));
|
||||
fflush(stderr);
|
||||
_exit(1);
|
12
net/lftp/patches/patch-src_misc_cc
Normal file
12
net/lftp/patches/patch-src_misc_cc
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-src_misc_cc,v 1.1 2002/12/29 00:10:48 pvalchev Exp $
|
||||
--- src/misc.cc.orig Sat Dec 28 15:24:50 2002
|
||||
+++ src/misc.cc Sat Dec 28 15:25:18 2002
|
||||
@@ -258,7 +258,7 @@ void truncate_file_tree(const char *dir
|
||||
SignalHook::Ignore(SIGTSTP);
|
||||
SignalHook::Ignore(SIGQUIT);
|
||||
SignalHook::Ignore(SIGHUP);
|
||||
- execlp("rm","rm","-rf",dir,NULL);
|
||||
+ execlp("rm","rm","-rf",dir,(void *)NULL);
|
||||
perror("execlp(rm)");
|
||||
fflush(stderr);
|
||||
_exit(1);
|
17
x11/icewm/patches/patch-src_wmapp_cc
Normal file
17
x11/icewm/patches/patch-src_wmapp_cc
Normal file
@ -0,0 +1,17 @@
|
||||
$OpenBSD: patch-src_wmapp_cc,v 1.1 2002/12/29 00:10:48 pvalchev Exp $
|
||||
--- src/wmapp.cc.orig Sat Dec 28 15:21:46 2002
|
||||
+++ src/wmapp.cc Sat Dec 28 15:22:19 2002
|
||||
@@ -883,11 +883,11 @@ void runRestart(const char *str, const c
|
||||
if (args) {
|
||||
execvp(str, (char * const *) args);
|
||||
} else {
|
||||
- execlp(str, str, 0);
|
||||
+ execlp(str, str, (void *)NULL);
|
||||
}
|
||||
} else {
|
||||
const char *c = configArg ? "-c" : NULL;
|
||||
- execlp(ICEWMEXE, ICEWMEXE, c, configArg, 0);
|
||||
+ execlp(ICEWMEXE, ICEWMEXE, c, configArg, (void *)NULL);
|
||||
}
|
||||
|
||||
app->alert();
|
12
x11/icewm/patches/patch-src_yapp_cc
Normal file
12
x11/icewm/patches/patch-src_yapp_cc
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-src_yapp_cc,v 1.1 2002/12/29 00:10:48 pvalchev Exp $
|
||||
--- src/yapp.cc.orig Sat Dec 28 15:21:52 2002
|
||||
+++ src/yapp.cc Sat Dec 28 15:22:32 2002
|
||||
@@ -1370,7 +1370,7 @@ void YApplication::runProgram(const char
|
||||
if (args)
|
||||
execvp(str, (char **)args);
|
||||
else
|
||||
- execlp(str, str, 0);
|
||||
+ execlp(str, str, (void *)NULL);
|
||||
_exit(1);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user