summaryrefslogtreecommitdiffstats
path: root/sbin/fsck_ffs/pass1.c
diff options
context:
space:
mode:
authorscottl <scottl@FreeBSD.org>2004-09-01 05:48:06 +0000
committerscottl <scottl@FreeBSD.org>2004-09-01 05:48:06 +0000
commit6703db134608d1953b911a81784b3e83dcc59e74 (patch)
treeca85a75b39183c91099ae8817abea2672f6adcd0 /sbin/fsck_ffs/pass1.c
parent0067bbd33a34b1b53ea517ebf1d167b22fd6e37d (diff)
downloadFreeBSD-src-6703db134608d1953b911a81784b3e83dcc59e74.zip
FreeBSD-src-6703db134608d1953b911a81784b3e83dcc59e74.tar.gz
Create DIP_SET() and IBLK_SET() macros to fix lvalue warnings.
Inspired by: kan
Diffstat (limited to 'sbin/fsck_ffs/pass1.c')
-rw-r--r--sbin/fsck_ffs/pass1.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/fsck_ffs/pass1.c b/sbin/fsck_ffs/pass1.c
index 898f897..b4b3617 100644
--- a/sbin/fsck_ffs/pass1.c
+++ b/sbin/fsck_ffs/pass1.c
@@ -236,8 +236,8 @@ checkinode(ino_t inumber, struct inodesc *idesc)
}
if (!preen && mode == IFMT && reply("HOLD BAD BLOCK") == 1) {
dp = ginode(inumber);
- DIP(dp, di_size) = sblock.fs_fsize;
- DIP(dp, di_mode) = IFREG|0600;
+ DIP_SET(dp, di_size, sblock.fs_fsize);
+ DIP_SET(dp, di_mode, IFREG|0600);
inodirty();
}
if ((mode == IFBLK || mode == IFCHR || mode == IFIFO ||
@@ -364,7 +364,7 @@ checkinode(ino_t inumber, struct inodesc *idesc)
return;
if (bkgrdflag == 0) {
dp = ginode(inumber);
- DIP(dp, di_blocks) = idesc->id_entryno;
+ DIP_SET(dp, di_blocks, idesc->id_entryno);
inodirty();
} else {
cmd.value = idesc->id_number;
OpenPOWER on IntegriCloud