Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-5]: src/usr.bin/quota Pull up revision 1.23 (requested by cgd):



details:   https://anonhg.NetBSD.org/src/rev/576135f917ca
branches:  netbsd-1-5
changeset: 491034:576135f917ca
user:      he <he%NetBSD.org@localhost>
date:      Fri Mar 30 22:49:34 2001 +0000

description:
Pull up revision 1.23 (requested by cgd):
  Fix order of arithmetic operations so that NFS file system quotas
  over 4GB are displayed properly.

diffstat:

 usr.bin/quota/quota.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (35 lines):

diff -r aa8250cb0787 -r 576135f917ca usr.bin/quota/quota.c
--- a/usr.bin/quota/quota.c     Fri Mar 30 22:47:38 2001 +0000
+++ b/usr.bin/quota/quota.c     Fri Mar 30 22:49:34 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: quota.c,v 1.22 1999/12/16 17:29:52 bouyer Exp $        */
+/*     $NetBSD: quota.c,v 1.22.4.1 2001/03/30 22:49:34 he Exp $        */
 
 /*
  * Copyright (c) 1980, 1990, 1993
@@ -46,7 +46,7 @@
 #if 0
 static char sccsid[] = "@(#)quota.c    8.4 (Berkeley) 4/28/95";
 #else
-__RCSID("$NetBSD: quota.c,v 1.22 1999/12/16 17:29:52 bouyer Exp $");
+__RCSID("$NetBSD: quota.c,v 1.22.4.1 2001/03/30 22:49:34 he Exp $");
 #endif
 #endif /* not lint */
 
@@ -659,13 +659,13 @@
                        /* blocks*/
                dqp->dqb_bhardlimit =
                    gq_rslt.getquota_rslt_u.gqr_rquota.rq_bhardlimit *
-                   gq_rslt.getquota_rslt_u.gqr_rquota.rq_bsize / DEV_BSIZE;
+                   (gq_rslt.getquota_rslt_u.gqr_rquota.rq_bsize / DEV_BSIZE);
                dqp->dqb_bsoftlimit =
                    gq_rslt.getquota_rslt_u.gqr_rquota.rq_bsoftlimit *
-                   gq_rslt.getquota_rslt_u.gqr_rquota.rq_bsize / DEV_BSIZE;
+                   (gq_rslt.getquota_rslt_u.gqr_rquota.rq_bsize / DEV_BSIZE);
                dqp->dqb_curblocks =
                    gq_rslt.getquota_rslt_u.gqr_rquota.rq_curblocks *
-                   gq_rslt.getquota_rslt_u.gqr_rquota.rq_bsize / DEV_BSIZE;
+                   (gq_rslt.getquota_rslt_u.gqr_rquota.rq_bsize / DEV_BSIZE);
                        /* inodes */
                dqp->dqb_ihardlimit =
                        gq_rslt.getquota_rslt_u.gqr_rquota.rq_fhardlimit;



Home | Main Index | Thread Index | Old Index