summaryrefslogtreecommitdiffstats
path: root/usr.sbin/rpc.ypupdated
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>2001-07-09 09:24:06 +0000
committerbrian <brian@FreeBSD.org>2001-07-09 09:24:06 +0000
commit8636b161b333b18525b6f5ffc5139079c29c0d63 (patch)
treea109115514a8774e981280efca775db8a410df5b /usr.sbin/rpc.ypupdated
parentef44874abb9460f2956eba8e3233154af304f5b1 (diff)
downloadFreeBSD-src-8636b161b333b18525b6f5ffc5139079c29c0d63.zip
FreeBSD-src-8636b161b333b18525b6f5ffc5139079c29c0d63.tar.gz
Fix the type of the NULL arg to execl()
Idea from: Theo de Raadt <deraadt@openbsd.org>
Diffstat (limited to 'usr.sbin/rpc.ypupdated')
-rw-r--r--usr.sbin/rpc.ypupdated/update.c2
-rw-r--r--usr.sbin/rpc.ypupdated/yp_dbupdate.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/rpc.ypupdated/update.c b/usr.sbin/rpc.ypupdated/update.c
index 996347b..376743b 100644
--- a/usr.sbin/rpc.ypupdated/update.c
+++ b/usr.sbin/rpc.ypupdated/update.c
@@ -193,7 +193,7 @@ _openchild(command, fto, ffrom)
_exit(~0);
}
(void)sprintf(com, "exec %s", command);
- execl(SHELL, basename(SHELL), "-c", com, NULL);
+ execl(SHELL, basename(SHELL), "-c", com, (char *)NULL);
_exit(~0);
default:
diff --git a/usr.sbin/rpc.ypupdated/yp_dbupdate.c b/usr.sbin/rpc.ypupdated/yp_dbupdate.c
index c906dec..8fb1eba 100644
--- a/usr.sbin/rpc.ypupdated/yp_dbupdate.c
+++ b/usr.sbin/rpc.ypupdated/yp_dbupdate.c
@@ -57,7 +57,7 @@ static int yp_domake(map, domain)
switch((pid = fork())) {
case 0:
- execlp(MAP_UPDATE_PATH, MAP_UPDATE, map, domain, NULL);
+ execlp(MAP_UPDATE_PATH, MAP_UPDATE, map, domain, (char *)NULL);
yp_error("couldn't exec map update process: %s",
strerror(errno));
exit(1);
OpenPOWER on IntegriCloud