dblksize warning
Peter Avalos
pavalos at theshell.com
Fri Oct 20 14:06:39 PDT 2006
While cleaning up warnings in sbin/dump I noticed that the dblksize
macro was emitting a warning. I'm not a fs expert, so I'm not sure
what the appropriate fix is, but the attached patch seems to work.
Thoughts?
--Peter
Index: fs.h
===================================================================
RCS file: /home/dcvs/src/sys/vfs/ufs/fs.h,v
retrieving revision 1.5
diff -u -r1.5 fs.h
--- fs.h 3 Apr 2006 02:02:37 -0000 1.5
+++ fs.h 20 Oct 2006 20:39:47 -0000
@@ -538,7 +538,7 @@
: (fragroundup(fs, blkoff(fs, (ip)->i_size))))
#define dblksize(fs, dip, lbn) \
(((lbn) >= NDADDR || (dip)->di_size >= smalllblktosize(fs, (lbn) + 1)) \
- ? (fs)->fs_bsize \
+ ? (unsigned)(fs)->fs_bsize \
: (fragroundup(fs, blkoff(fs, (dip)->di_size))))
#define sblksize(fs, size, lbn) \
(((lbn) >= NDADDR || (size) >= ((lbn) + 1) << (fs)->fs_bshift) \
Attachment:
pgp00002.pgp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pgp00002.pgp
Type: application/octet-stream
Size: 189 bytes
Desc: "Description: PGP signature"
URL: <http://lists.dragonflybsd.org/pipermail/kernel/attachments/20061020/269ec514/attachment-0019.obj>
More information about the Kernel
mailing list