summaryrefslogtreecommitdiff
path: root/sbin/fsck_ffs/dir.c
diff options
context:
space:
mode:
authorOtto Moerbeek <otto@cvs.openbsd.org>2007-09-16 17:42:41 +0000
committerOtto Moerbeek <otto@cvs.openbsd.org>2007-09-16 17:42:41 +0000
commit84adede6ec3f00f92fbc9b91d01117da6c8a1499 (patch)
treeabc3523422996c482ce7a40d3ee421ae7db5d896 /sbin/fsck_ffs/dir.c
parent9d189a107ed10460d3c6b028c8bdcca3d8076ada (diff)
Do not use DIP() as an lvalue; founc by pcc. ok millert@ ray@
Diffstat (limited to 'sbin/fsck_ffs/dir.c')
-rw-r--r--sbin/fsck_ffs/dir.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/fsck_ffs/dir.c b/sbin/fsck_ffs/dir.c
index 173528ecccc..c4244041f60 100644
--- a/sbin/fsck_ffs/dir.c
+++ b/sbin/fsck_ffs/dir.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dir.c,v 1.21 2007/06/25 19:59:55 otto Exp $ */
+/* $OpenBSD: dir.c,v 1.22 2007/09/16 17:42:40 otto Exp $ */
/* $NetBSD: dir.c,v 1.20 1996/09/27 22:45:11 christos Exp $ */
/*
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)dir.c 8.5 (Berkeley) 12/8/94";
#else
-static const char rcsid[] = "$OpenBSD: dir.c,v 1.21 2007/06/25 19:59:55 otto Exp $";
+static const char rcsid[] = "$OpenBSD: dir.c,v 1.22 2007/09/16 17:42:40 otto Exp $";
#endif
#endif /* not lint */
@@ -316,7 +316,7 @@ adjust(struct inodesc *idesc, short lcnt)
printf(" (ADJUSTED)\n");
}
if (preen || reply("ADJUST") == 1) {
- DIP(dp, di_nlink) -= lcnt;
+ DIP_SET(dp, di_nlink, DIP(dp, di_nlink) - lcnt);
inodirty();
}
}