struct vfsconf vfc;
udp6conf = tcp6conf = NULL;
- udp6sock = tcp6sock = NULL;
+ udp6sock = tcp6sock = 0;
/* Check that another mountd isn't already running. */
if ((mountdlockfd = (open(MOUNTDLOCK, O_RDONLY|O_CREAT, 0444))) == -1)
ai = NULL;
switch (rqstp->rq_proc) {
case NULLPROC:
- if (!svc_sendreply(transp, xdr_void, (caddr_t)NULL))
+ if (!svc_sendreply(transp, (xdrproc_t)xdr_void, NULL))
syslog(LOG_ERR, "can't send reply");
return;
case RPCMNT_MOUNT:
svcerr_weakauth(transp);
return;
}
- if (!svc_getargs(transp, xdr_dir, rpcpath)) {
+ if (!svc_getargs(transp, (xdrproc_t)xdr_dir, rpcpath)) {
syslog(LOG_NOTICE, "undecodable mount request from %s",
numerichost);
svcerr_decode(transp);
(defset && scan_tree(ep->ex_defdir, saddr) == 0 &&
scan_tree(ep->ex_dirl, saddr) == 0))) {
if (bad) {
- if (!svc_sendreply(transp, xdr_long,
- (caddr_t)&bad))
+ if (!svc_sendreply(transp, (xdrproc_t)xdr_long,
+ &bad))
syslog(LOG_ERR, "can't send reply");
sigprocmask(SIG_UNBLOCK, &sighup_mask, NULL);
return;
if (getfh(dirpath, (fhandle_t *)&fhr.fhr_fh) < 0) {
bad = errno;
syslog(LOG_ERR, "can't get fh for %s", dirpath);
- if (!svc_sendreply(transp, xdr_long,
- (caddr_t)&bad))
+ if (!svc_sendreply(transp, (xdrproc_t)xdr_long,
+ &bad))
syslog(LOG_ERR, "can't send reply");
sigprocmask(SIG_UNBLOCK, &sighup_mask, NULL);
return;
}
- if (!svc_sendreply(transp, xdr_fhs, (caddr_t)&fhr))
+ if (!svc_sendreply(transp, (xdrproc_t)xdr_fhs, &fhr))
syslog(LOG_ERR, "can't send reply");
if (!lookup_failed)
add_mlist(host, dirpath);
numerichost, dirpath);
}
- if (bad && !svc_sendreply(transp, xdr_long, (caddr_t)&bad))
+ if (bad && !svc_sendreply(transp, (xdrproc_t)xdr_long, &bad))
syslog(LOG_ERR, "can't send reply");
sigprocmask(SIG_UNBLOCK, &sighup_mask, NULL);
return;
case RPCMNT_DUMP:
- if (!svc_sendreply(transp, xdr_mlist, (caddr_t)NULL))
+ if (!svc_sendreply(transp, (xdrproc_t)xdr_mlist, NULL))
syslog(LOG_ERR, "can't send reply");
else if (do_log)
syslog(LOG_NOTICE,
svcerr_weakauth(transp);
return;
}
- if (!svc_getargs(transp, xdr_dir, rpcpath)) {
+ if (!svc_getargs(transp, (xdrproc_t)xdr_dir, rpcpath)) {
syslog(LOG_NOTICE, "undecodable umount request from %s",
numerichost);
svcerr_decode(transp);
"for non existent path %s",
numerichost, dirpath);
}
- if (!svc_sendreply(transp, xdr_void, (caddr_t)NULL))
+ if (!svc_sendreply(transp, (xdrproc_t)xdr_void, NULL))
syslog(LOG_ERR, "can't send reply");
if (!lookup_failed)
del_mlist(host, dirpath);
svcerr_weakauth(transp);
return;
}
- if (!svc_sendreply(transp, xdr_void, (caddr_t)NULL))
+ if (!svc_sendreply(transp, (xdrproc_t)xdr_void, NULL))
syslog(LOG_ERR, "can't send reply");
if (!lookup_failed)
del_mlist(host, NULL);
numerichost);
return;
case RPCMNT_EXPORT:
- if (!svc_sendreply(transp, xdr_explist, (caddr_t)NULL))
+ if (!svc_sendreply(transp, (xdrproc_t)xdr_explist, NULL))
syslog(LOG_ERR, "can't send reply");
if (do_log)
syslog(LOG_NOTICE,