aboutsummaryrefslogtreecommitdiff
path: root/gdb/cli/cli-cmds.c
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2004-01-22 22:20:39 +0000
committerMark Kettenis <kettenis@gnu.org>2004-01-22 22:20:39 +0000
commit36662fde7b36c1effab525806db6f51d1356eb2b (patch)
tree32624d67dacc2f9cdbec1e078e55ad23f0ec57df /gdb/cli/cli-cmds.c
parent642d8300fe08760ef796789be6cc7afc3a392d84 (diff)
downloadfsf-binutils-gdb-36662fde7b36c1effab525806db6f51d1356eb2b.zip
fsf-binutils-gdb-36662fde7b36c1effab525806db6f51d1356eb2b.tar.gz
fsf-binutils-gdb-36662fde7b36c1effab525806db6f51d1356eb2b.tar.bz2
* ser-pipe.c (pipe_open): Use proper null pointer in execl call.
* cli/cli-cmds.c (shell_escape): Likewise.
Diffstat (limited to 'gdb/cli/cli-cmds.c')
-rw-r--r--gdb/cli/cli-cmds.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/cli/cli-cmds.c b/gdb/cli/cli-cmds.c
index 00aef54..4f255c3 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));