aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/quota
diff options
context:
space:
mode:
authorOlivier Houchard <cognet@FreeBSD.org>2008-08-03 20:36:40 +0000
committerOlivier Houchard <cognet@FreeBSD.org>2008-08-03 20:36:40 +0000
commit049aa2e8131b9032f54e548e13274bdd0b572561 (patch)
treecf2a0873984232cc7cfbccc7fdf9267d6d9666eb /usr.bin/quota
parent89538e75d6b9d73ad915218d6cf47cbc7130dd0c (diff)
downloadsrc-049aa2e8131b9032f54e548e13274bdd0b572561.tar.gz
src-049aa2e8131b9032f54e548e13274bdd0b572561.zip
Notes
Diffstat (limited to 'usr.bin/quota')
-rw-r--r--usr.bin/quota/quota.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/usr.bin/quota/quota.c b/usr.bin/quota/quota.c
index c725ad952f6a..7b0763d65e61 100644
--- a/usr.bin/quota/quota.c
+++ b/usr.bin/quota/quota.c
@@ -396,6 +396,7 @@ showrawquotas(type, id, qup)
u_long id;
struct quotause *qup;
{
+ time_t tt;
printf("Raw %s quota information for id %lu on %s\n",
type == USRQUOTA ? "user" : "group", id, qup->fsname);
printf("block hard limit: %ju\n", (uintmax_t)qup->dqblk.dqb_bhardlimit);
@@ -405,14 +406,16 @@ showrawquotas(type, id, qup)
printf("i-node soft limit: %ju\n", (uintmax_t)qup->dqblk.dqb_isoftlimit);
printf("current i-node count: %ju\n", (uintmax_t)qup->dqblk.dqb_curinodes);
printf("block grace time: %jd", (intmax_t)qup->dqblk.dqb_btime);
- if (qup->dqblk.dqb_btime != 0)
- printf(" %s", ctime(&qup->dqblk.dqb_btime));
- else
+ if (qup->dqblk.dqb_btime != 0) {
+ tt = qup->dqblk.dqb_btime;
+ printf(" %s", ctime(&tt));
+ } else
printf("\n");
printf("i-node grace time: %jd", (intmax_t)qup->dqblk.dqb_itime);
- if (qup->dqblk.dqb_itime != 0)
- printf(" %s", ctime(&qup->dqblk.dqb_itime));
- else
+ if (qup->dqblk.dqb_itime != 0) {
+ tt = qup->dqblk.dqb_itime;
+ printf(" %s", ctime(&tt));
+ } else
printf("\n");
}