diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-11-19 10:54:38 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-11-19 10:55:38 -0800 |
commit | e17c2f59266528dce1cfb71798dc6075b74839a3 (patch) | |
tree | 12903cccc5ff8e86fd62d6a8fb8ec1639be51201 /misc.c | |
parent | 7940a487162c5acb55417f0abafe70043bcc679e (diff) |
Terminate execl() arguments with NULL instead of 0
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 <alan.coopersmith@oracle.com>
Diffstat (limited to 'misc.c')
-rw-r--r-- | misc.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |