From: Mark Kettenis Date: Thu, 22 Jan 2004 22:20:39 +0000 (+0000) Subject: * ser-pipe.c (pipe_open): Use proper null pointer in execl call. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=36662fde7b36c1effab525806db6f51d1356eb2b;p=binutils-gdb.git * ser-pipe.c (pipe_open): Use proper null pointer in execl call. * cli/cli-cmds.c (shell_escape): Likewise. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index aaa1b3c73c1..792a8a977eb 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,8 @@ 2004-01-22 Mark Kettenis + * ser-pipe.c (pipe_open): Use proper null pointer in execl call. + * cli/cli-cmds.c (shell_escape): Likewise. + * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize OpenBSD .note.openbsd.ident sections. diff --git a/gdb/cli/cli-cmds.c b/gdb/cli/cli-cmds.c index 00aef54c0e0..4f255c3089f 100644 --- a/gdb/cli/cli-cmds.c +++ b/gdb/cli/cli-cmds.c @@ -504,9 +504,9 @@ shell_escape (char *arg, int from_tty) p++; /* Get past '/' */ if (!arg) - execl (user_shell, p, 0); + execl (user_shell, p, (char *) 0); else - execl (user_shell, p, "-c", arg, 0); + execl (user_shell, p, "-c", arg, (char *) 0); fprintf_unfiltered (gdb_stderr, "Cannot execute %s: %s\n", user_shell, safe_strerror (errno)); diff --git a/gdb/ser-pipe.c b/gdb/ser-pipe.c index 38f8e78949a..3e04973f854 100644 --- a/gdb/ser-pipe.c +++ b/gdb/ser-pipe.c @@ -98,7 +98,7 @@ pipe_open (struct serial *scb, const char *name) for (old = pidlist; old; old = old->next) close (fileno (old->fp)); /* don't allow a flush */ #endif - execl ("/bin/sh", "sh", "-c", name, NULL); + execl ("/bin/sh", "sh", "-c", name, (char *) 0); _exit (127); }