Browse Source

* slsignal.c (SLsystem): Replaced NULL with (char *) NULL in
call to execl.

From patches from the OpenBSD ports collection.

Roland Illig 20 years ago
parent
commit
ad1e412fa1
2 changed files with 8 additions and 1 deletions
  1. 7 0
      slang/ChangeLog
  2. 1 1
      slang/slsignal.c

+ 7 - 0
slang/ChangeLog

@@ -1,3 +1,10 @@
+2004-09-24  Roland Illig  <roland.illig@gmx.de>
+
+	* 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  <pavelsh@mail.ru>
 
 	* sltermin.c (): Avoid strncpy, home_ti is 1K long and 

+ 1 - 1
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