Page MenuHomeFreeBSD

D56343.diff
No OneTemporary

D56343.diff

diff --git a/sbin/tunefs/tunefs.c b/sbin/tunefs/tunefs.c
--- a/sbin/tunefs/tunefs.c
+++ b/sbin/tunefs/tunefs.c
@@ -708,13 +708,13 @@
}
static void
-dir_clear_block(const dirblock *block, off_t off)
+dir_clear_block(dirblock *block, off_t off)
{
struct direct *dp;
for (; off < sblock.fs_bsize; off += DIRBLKSIZ) {
assert(off % alignof(struct direct) == 0);
- dp = (struct direct *)(uintptr_t)(block + off);
+ dp = (struct direct *)(uintptr_t)(block->buf + off);
dp->d_ino = 0;
dp->d_reclen = DIRBLKSIZ;
dp->d_type = DT_UNKNOWN;

File Metadata

Mime Type
text/plain
Expires
Thu, Apr 16, 4:04 PM (16 h, 49 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31296961
Default Alt Text
D56343.diff (554 B)

Event Timeline