From: | Peter Avalos <pavalos@xxxxxxxxxxxx> |
Date: | Fri, 20 Oct 2006 13:45:46 -0700 |
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
Description: PGP signature