Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F152554964
D56343.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
554 B
Referenced Files
None
Subscribers
None
D56343.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D56343: tunefs: Fix pointer arithmetic
Attached
Detach File
Event Timeline
Log In to Comment