aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/ypserv
diff options
context:
space:
mode:
authorBrian Somers <brian@FreeBSD.org>2001-07-09 09:24:06 +0000
committerBrian Somers <brian@FreeBSD.org>2001-07-09 09:24:06 +0000
commit7bc6d0158f0e9863a2a13a951321185d214cd3be (patch)
treea109115514a8774e981280efca775db8a410df5b /usr.sbin/ypserv
parentb5b15b9e7fbe55119213a41835516dc91b25e978 (diff)
downloadsrc-7bc6d0158f0e9863a2a13a951321185d214cd3be.tar.gz
src-7bc6d0158f0e9863a2a13a951321185d214cd3be.zip
Fix the type of the NULL arg to execl()
Idea from: Theo de Raadt <deraadt@openbsd.org>
Notes
Notes: svn path=/head/; revision=79452
Diffstat (limited to 'usr.sbin/ypserv')
-rw-r--r--usr.sbin/ypserv/yp_server.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ypserv/yp_server.c b/usr.sbin/ypserv/yp_server.c
index aa95bba1bc62..774e1adf9d3e 100644
--- a/usr.sbin/ypserv/yp_server.c
+++ b/usr.sbin/ypserv/yp_server.c
@@ -380,7 +380,7 @@ ypproc_xfr_2_svc(ypreq_xfr *argp, struct svc_req *rqstp)
"-p", yp_dir, "-C", t,
g, inet_ntoa(rqhost->sin_addr),
p, argp->map_parms.map,
- NULL);
+ (char *)NULL);
} else {
execl(ypxfr_command, "ypxfr",
"-d", argp->map_parms.domain,
@@ -388,7 +388,7 @@ ypproc_xfr_2_svc(ypreq_xfr *argp, struct svc_req *rqstp)
"-C", t,
g, inet_ntoa(rqhost->sin_addr),
p, argp->map_parms.map,
- NULL);
+ (char *)NULL);
}
yp_error("ypxfr execl(%s): %s", ypxfr_command, strerror(errno));
YPXFR_RETURN(YPXFR_XFRERR)