aboutsummaryrefslogtreecommitdiff
path: root/sbin/fsck_ffs/pass1.c
diff options
context:
space:
mode:
authorScott Long <scottl@FreeBSD.org>2004-09-01 05:48:06 +0000
committerScott Long <scottl@FreeBSD.org>2004-09-01 05:48:06 +0000
commitc3b2344b93165eb3d87d1f3ac7642fec43b94956 (patch)
treeca85a75b39183c91099ae8817abea2672f6adcd0 /sbin/fsck_ffs/pass1.c
parent463d737b9066140dceda46149f5731a9a9287a8b (diff)
downloadsrc-c3b2344b93165eb3d87d1f3ac7642fec43b94956.tar.gz
src-c3b2344b93165eb3d87d1f3ac7642fec43b94956.zip
Create DIP_SET() and IBLK_SET() macros to fix lvalue warnings.
Inspired by: kan
Notes
Notes: svn path=/head/; revision=134589
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 898f8970b7cd..b4b36171f8ce 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;