From owner-svn-src-all@FreeBSD.ORG Fri Sep 25 23:03:25 2009 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2E37A106566B; Fri, 25 Sep 2009 23:03:25 +0000 (UTC) (envelope-from des@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 1D02D8FC08; Fri, 25 Sep 2009 23:03:25 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n8PN3OxX042151; Fri, 25 Sep 2009 23:03:24 GMT (envelope-from des@svn.freebsd.org) Received: (from des@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n8PN3OUN042149; Fri, 25 Sep 2009 23:03:24 GMT (envelope-from des@svn.freebsd.org) Message-Id: <200909252303.n8PN3OUN042149@svn.freebsd.org> From: Dag-Erling Smorgrav Date: Fri, 25 Sep 2009 23:03:24 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r197508 - head/libexec/rpc.rquotad X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Sep 2009 23:03:25 -0000 Author: des Date: Fri Sep 25 23:03:24 2009 New Revision: 197508 URL: http://svn.freebsd.org/changeset/base/197508 Log: Other minor style issues. Modified: head/libexec/rpc.rquotad/rquotad.c Modified: head/libexec/rpc.rquotad/rquotad.c ============================================================================== --- head/libexec/rpc.rquotad/rquotad.c Fri Sep 25 22:45:59 2009 (r197507) +++ head/libexec/rpc.rquotad/rquotad.c Fri Sep 25 23:03:24 2009 (r197508) @@ -175,9 +175,8 @@ sendquota(struct svc_req *request, SVCXP 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); @@ -189,10 +188,9 @@ printerr_reply(SVCXPRT *transp) /* when { 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); @@ -255,7 +253,7 @@ getfsquota(long id, char *path, struct d 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;