summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/binutils/gdb/command.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2001-07-09 07:05:10 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2001-07-09 07:05:10 +0000
commite794dc8249450a31cf35cb2aa88a33779325b689 (patch)
tree7fe943aa48c43bd24ed6b9267ab44c0191c44d4a /gnu/usr.bin/binutils/gdb/command.c
parent5b1ba3114a10793470c731e714160f24131b690d (diff)
correct type on last arg to execl(); nordin@cse.ogi.edu
Diffstat (limited to 'gnu/usr.bin/binutils/gdb/command.c')
-rw-r--r--gnu/usr.bin/binutils/gdb/command.c4
1 files changed, 2 insertions, 2 deletions
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));