summaryrefslogtreecommitdiffstats
path: root/libexec/rpc.rquotad
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2009-09-25 23:28:57 +0000
committerdes <des@FreeBSD.org>2009-09-25 23:28:57 +0000
commit99096894824ebaad6bc1c96245f72c97bfc37564 (patch)
tree74b8f18f69949ce8a029f6e40ac508af7630c5a6 /libexec/rpc.rquotad
parent4764a20762e486d50f6b27b8eae1ca681ffff587 (diff)
downloadFreeBSD-src-99096894824ebaad6bc1c96245f72c97bfc37564.zip
FreeBSD-src-99096894824ebaad6bc1c96245f72c97bfc37564.tar.gz
Sync with head
Diffstat (limited to 'libexec/rpc.rquotad')
-rw-r--r--libexec/rpc.rquotad/rquotad.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/libexec/rpc.rquotad/rquotad.c b/libexec/rpc.rquotad/rquotad.c
index 2499c48..5be6ce1 100644
--- a/libexec/rpc.rquotad/rquotad.c
+++ b/libexec/rpc.rquotad/rquotad.c
@@ -176,9 +176,8 @@ sendquota(struct svc_req *request, SVCXPRT *transp)
getq_rslt.getquota_rslt_u.gqr_rquota.rq_ftimeleft =
dqblk.dqb_itime - timev.tv_sec;
}
- if (!svc_sendreply(transp, (xdrproc_t)xdr_getquota_rslt, &getq_rslt)) {
+ if (!svc_sendreply(transp, (xdrproc_t)xdr_getquota_rslt, &getq_rslt))
svcerr_systemerr(transp);
- }
if (!svc_freeargs(transp, (xdrproc_t)xdr_getquota_args, &getq_args)) {
syslog(LOG_ERR, "unable to free arguments");
exit(1);
@@ -190,10 +189,9 @@ printerr_reply(SVCXPRT *transp) /* when a reply to a request failed */
{
char name[INET6_ADDRSTRLEN];
struct sockaddr *caller;
- int save_errno;
+ int save_errno;
save_errno = errno;
-
caller = (struct sockaddr *)svc_getrpccaller(transp)->buf;
getnameinfo(caller, caller->sa_len, name, sizeof (name),
NULL, 0, NI_NUMERICHOST);
@@ -257,7 +255,7 @@ getfsquota(long id, char *path, struct dqblk *dqblk)
qcmd = QCMD(Q_GETQUOTA, USRQUOTA);
for (fs = fs_begin; fs != NULL; fs = fs->fs_next) {
- /* where the devise is the same as path */
+ /* where the device is the same as path */
if (fs->st_dev != st_path.st_dev)
continue;
OpenPOWER on IntegriCloud