From e794dc8249450a31cf35cb2aa88a33779325b689 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Mon, 9 Jul 2001 07:05:10 +0000 Subject: correct type on last arg to execl(); nordin@cse.ogi.edu --- gnu/usr.bin/binutils/gdb/29k-share/udi/udip2soc.c | 2 +- gnu/usr.bin/binutils/gdb/command.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'gnu/usr.bin/binutils/gdb') diff --git a/gnu/usr.bin/binutils/gdb/29k-share/udi/udip2soc.c b/gnu/usr.bin/binutils/gdb/29k-share/udi/udip2soc.c index aa25e00731d..e92dead8e3b 100644 --- a/gnu/usr.bin/binutils/gdb/29k-share/udi/udip2soc.c +++ b/gnu/usr.bin/binutils/gdb/29k-share/udi/udip2soc.c @@ -326,7 +326,7 @@ UDIConnect(Config, Session) arg0, soc_con[cnt].domain_string, soc_con[cnt].tip_string, - NULL); + (char *)NULL); _exit(1); } diff --git a/gnu/usr.bin/binutils/gdb/command.c b/gnu/usr.bin/binutils/gdb/command.c index 9afbf82e59a..c3c2b98a974 100644 --- a/gnu/usr.bin/binutils/gdb/command.c +++ b/gnu/usr.bin/binutils/gdb/command.c @@ -1369,9 +1369,9 @@ shell_escape (arg, from_tty) if ((pid = fork()) == 0) { if (!arg) - execl (user_shell, p, 0); + execl (user_shell, p, (char *)NULL); else - execl (user_shell, p, "-c", arg, 0); + execl (user_shell, p, "-c", arg, (char *)NULL); fprintf_unfiltered (gdb_stderr, "Cannot execute %s: %s\n", user_shell, safe_strerror (errno)); -- cgit v1.2.3