summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>2002-10-02 09:11:18 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>2002-10-02 09:11:18 +0000
commit4f3ee6dcc43113cd5e9ae20c30823801ede28480 (patch)
tree7355f6b7fbb26e03618d927edc46e51e7eeb69b5
parent8c5d01375764917e67068524c353a21182547539 (diff)
Notes
-rw-r--r--sys/ufs/ufs/ufs_quota.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/ufs/ufs/ufs_quota.c b/sys/ufs/ufs/ufs_quota.c
index 683169073cb5..258241293e3f 100644
--- a/sys/ufs/ufs/ufs_quota.c
+++ b/sys/ufs/ufs/ufs_quota.c
@@ -254,6 +254,7 @@ chkiq(ip, change, cred, flags)
#endif
if (change == 0)
return (0);
+ /* XXX: change is unsigned */
if (change < 0) {
for (i = 0; i < MAXQUOTAS; i++) {
if ((dq = ip->i_dquot[i]) == NODQUOT)
@@ -263,6 +264,7 @@ chkiq(ip, change, cred, flags)
(void) tsleep((caddr_t)dq, PINOD+1, "chkiq1", 0);
}
ncurinodes = dq->dq_curinodes + change;
+ /* XXX: ncurinodes is unsigned */
if (ncurinodes >= 0)
dq->dq_curinodes = ncurinodes;
else