From ad1e412fa1fac24f7e9b6ee3c243e4396d6da80a Mon Sep 17 00:00:00 2001 From: Roland Illig Date: Fri, 24 Sep 2004 14:06:04 +0000 Subject: [PATCH] * slsignal.c (SLsystem): Replaced NULL with (char *) NULL in call to execl. From patches from the OpenBSD ports collection. --- slang/ChangeLog | 7 +++++++ slang/slsignal.c | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/slang/ChangeLog b/slang/ChangeLog index 386231712..d846156a8 100644 --- a/slang/ChangeLog +++ b/slang/ChangeLog @@ -1,3 +1,10 @@ +2004-09-24 Roland Illig + + * slsignal.c (SLsystem): Replaced NULL with (char *) NULL in + call to execl. + + From patches from the OpenBSD ports collection. + 2004-09-04 Pavel S. Shirshov * sltermin.c (): Avoid strncpy, home_ti is 1K long and diff --git a/slang/slsignal.c b/slang/slsignal.c index b46d144c0..bde1f7300 100644 --- a/slang/slsignal.c +++ b/slang/slsignal.c @@ -227,7 +227,7 @@ int SLsystem (char *cmd) (void) sigprocmask (SIG_SETMASK, &save_mask, NULL); # endif - execl ("/bin/sh", "sh", "-c", cmd, NULL); + execl ("/bin/sh", "sh", "-c", cmd, (char *) NULL); _exit (127); } else