{
switch (request->rq_proc) {
case NULLPROC:
- (void)svc_sendreply(transp, xdr_void, (char *)NULL);
+ (void)svc_sendreply(transp, (xdrproc_t)xdr_void, (char *)NULL);
break;
case RQUOTAPROC_GETQUOTA:
struct timeval timev;
bzero((char *)&getq_args, sizeof(getq_args));
- if (!svc_getargs(transp, xdr_getquota_args, (caddr_t)&getq_args)) {
+ if (!svc_getargs(transp, (xdrproc_t)xdr_getquota_args, (caddr_t)&getq_args)) {
svcerr_decode(transp);
return;
}
getq_rslt.getquota_rslt_u.gqr_rquota.rq_ftimeleft =
dqblk.dqb_itime - timev.tv_sec;
}
- if (!svc_sendreply(transp, xdr_getquota_rslt, (char *)&getq_rslt)) {
+ if (!svc_sendreply(transp, (xdrproc_t)xdr_getquota_rslt, (char *)&getq_rslt)) {
svcerr_systemerr(transp);
}
- if (!svc_freeargs(transp, xdr_getquota_args, (caddr_t)&getq_args)) {
+ if (!svc_freeargs(transp, (xdrproc_t)xdr_getquota_args, (caddr_t)&getq_args)) {
syslog(LOG_ERR, "unable to free arguments");
exit(1);
}
uname = "";
pname = "<idle>";
} else {
- uname = (char *)user_from_uid(pt[k].pt_kp->kp_uid, 0);
+ uname = user_from_uid(pt[k].pt_kp->kp_uid, 0);
pname = pt[k].pt_kp->kp_comm;
}
wmove(wnd, y, 0);