Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F152511431
D56033.id174801.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D56033.id174801.diff
View Options
diff --git a/sbin/tunefs/Makefile b/sbin/tunefs/Makefile
--- a/sbin/tunefs/Makefile
+++ b/sbin/tunefs/Makefile
@@ -3,6 +3,4 @@
LIBADD= ufs util
MAN= tunefs.8
-WARNS?= 3
-
.include <bsd.prog.mk>
diff --git a/sbin/tunefs/tunefs.c b/sbin/tunefs/tunefs.c
--- a/sbin/tunefs/tunefs.c
+++ b/sbin/tunefs/tunefs.c
@@ -640,7 +640,7 @@
return (-1);
}
for (off = 0; off < bytes; off += dp->d_reclen) {
- dp = (struct direct *)&block[off];
+ dp = (struct direct *)(uintptr_t)&block[off];
if (dp->d_reclen == 0)
break;
if (dp->d_ino == 0)
@@ -705,7 +705,7 @@
struct direct *dp;
for (; off < sblock.fs_bsize; off += DIRBLKSIZ) {
- dp = (struct direct *)&block[off];
+ dp = (struct direct *)(uintptr_t)&block[off];
dp->d_ino = 0;
dp->d_reclen = DIRBLKSIZ;
dp->d_type = DT_UNKNOWN;
@@ -728,7 +728,7 @@
return (-1);
}
bzero(&block[off], sblock.fs_bsize - off);
- dp = (struct direct *)&block[off];
+ dp = (struct direct *)(uintptr_t)&block[off];
dp->d_ino = ino;
dp->d_reclen = DIRBLKSIZ;
dp->d_type = DT_REG;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Apr 16, 10:24 AM (12 h, 6 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31542428
Default Alt Text
D56033.id174801.diff (1 KB)
Attached To
Mode
D56033: tunefs: Don't lower WARNS
Attached
Detach File
Event Timeline
Log In to Comment