aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/edquota/edquota.c
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>1999-01-01 13:15:02 +0000
committerBruce Evans <bde@FreeBSD.org>1999-01-01 13:15:02 +0000
commit4e7767c7b906269153f940907e53eb6c797db296 (patch)
tree4fb813a8ef3aa40e01ce143b70fa521efd20c1b5 /usr.sbin/edquota/edquota.c
parentb55dcca10776d537b33283b056a9afd363a5b204 (diff)
downloadsrc-4e7767c7b906269153f940907e53eb6c797db296.tar.gz
src-4e7767c7b906269153f940907e53eb6c797db296.zip
Notes
Diffstat (limited to 'usr.sbin/edquota/edquota.c')
-rw-r--r--usr.sbin/edquota/edquota.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/usr.sbin/edquota/edquota.c b/usr.sbin/edquota/edquota.c
index 011037175ce5..0d983a9a3ec6 100644
--- a/usr.sbin/edquota/edquota.c
+++ b/usr.sbin/edquota/edquota.c
@@ -45,7 +45,7 @@ static const char copyright[] =
static char sccsid[] = "@(#)edquota.c 8.1 (Berkeley) 6/6/93";
#endif
static const char rcsid[] =
- "$Id$";
+ "$Id: edquota.c,v 1.7 1997/09/17 06:29:23 charnier Exp $";
#endif /* not lint */
/*
@@ -469,9 +469,11 @@ readprivs(quplist, inname)
warnx("%s:%s: bad format", fsp, cp);
return (0);
}
- dqblk.dqb_curblocks = btodb(dqblk.dqb_curblocks * 1024);
- dqblk.dqb_bsoftlimit = btodb(dqblk.dqb_bsoftlimit * 1024);
- dqblk.dqb_bhardlimit = btodb(dqblk.dqb_bhardlimit * 1024);
+ dqblk.dqb_curblocks = btodb((off_t)dqblk.dqb_curblocks * 1024);
+ dqblk.dqb_bsoftlimit = btodb((off_t)dqblk.dqb_bsoftlimit
+ * 1024);
+ dqblk.dqb_bhardlimit = btodb((off_t)dqblk.dqb_bhardlimit
+ * 1024);
if ((cp = strtok(line2, "\n")) == NULL) {
warnx("%s: %s: bad format", fsp, line2);
return (0);