diff options
author | Anil Madhavapeddy <avsm@cvs.openbsd.org> | 2003-07-30 20:56:20 +0000 |
---|---|---|
committer | Anil Madhavapeddy <avsm@cvs.openbsd.org> | 2003-07-30 20:56:20 +0000 |
commit | b0a12e5e522647cf5caee070c547cc349e4194a1 (patch) | |
tree | 818c37628bce0b4b8cb662aadbcf9e3b2b4005a6 /sbin | |
parent | 2c29111f4b4fa3dd66cb0f9701e82623fbbdbb3a (diff) |
NULL -> (char *)NULL in execle; ok millert@
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/shutdown/shutdown.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sbin/shutdown/shutdown.c b/sbin/shutdown/shutdown.c index eee4c548954..2ee1a73389b 100644 --- a/sbin/shutdown/shutdown.c +++ b/sbin/shutdown/shutdown.c @@ -1,4 +1,4 @@ -/* $OpenBSD: shutdown.c,v 1.29 2003/06/02 20:06:17 millert Exp $ */ +/* $OpenBSD: shutdown.c,v 1.30 2003/07/30 20:56:19 avsm Exp $ */ /* $NetBSD: shutdown.c,v 1.9 1995/03/18 15:01:09 cgd Exp $ */ /* @@ -40,7 +40,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)shutdown.c 8.2 (Berkeley) 2/16/94"; #else -static char rcsid[] = "$OpenBSD: shutdown.c,v 1.29 2003/06/02 20:06:17 millert Exp $"; +static char rcsid[] = "$OpenBSD: shutdown.c,v 1.30 2003/07/30 20:56:19 avsm Exp $"; #endif #endif /* not lint */ @@ -375,7 +375,7 @@ die_you_gravy_sucking_pig_dog(void) if (doreboot) { execle(_PATH_REBOOT, "reboot", "-l", (nosync ? "-n" : (dodump ? "-d" : NULL)), - (dodump ? "-d" : NULL), NULL, NULL); + (dodump ? "-d" : NULL), (char *)NULL, (char *)NULL); syslog(LOG_ERR, "shutdown: can't exec %s: %m.", _PATH_REBOOT); warn(_PATH_REBOOT); } @@ -383,7 +383,7 @@ die_you_gravy_sucking_pig_dog(void) execle(_PATH_HALT, "halt", "-l", (dopower ? "-p" : (nosync ? "-n" : (dodump ? "-d" : NULL))), (nosync ? "-n" : (dodump ? "-d" : NULL)), - (dodump ? "-d" : NULL), NULL, NULL); + (dodump ? "-d" : NULL), (char *)NULL, (char *)NULL); syslog(LOG_ERR, "shutdown: can't exec %s: %m.", _PATH_HALT); warn(_PATH_HALT); } |