From e17c2f59266528dce1cfb71798dc6075b74839a3 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sat, 19 Nov 2011 10:54:38 -0800 Subject: Terminate execl() arguments with NULL instead of 0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Makes sure that a full 64-bits of 0 is passed in 64-bit builds, and clears gcc warning of: misc.c: In function ‘System’: misc.c:114:2: warning: missing sentinel in function call Signed-off-by: Alan Coopersmith --- misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'misc.c') diff --git a/misc.c b/misc.c index 0efa8e4..90e4e6c 100644 --- a/misc.c +++ b/misc.c @@ -111,7 +111,7 @@ System(char *s) int pid, status; if ((pid = fork ()) == 0) { (void) setpgrp(); - execl ("/bin/sh", "sh", "-c", s, 0); + execl ("/bin/sh", "sh", "-c", s, NULL); } else waitpid (pid, &status, 0); return status; -- cgit v1.2.3