mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 12:54:27 +00:00
Fix architectures where pointer and u_int have different sizes
Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D14049
This commit is contained in:
parent
5a70796a71
commit
af89fcf725
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=328393
|
@ -368,8 +368,8 @@ flush(int fd, struct bufarea *bp)
|
|||
switch (bp->b_type) {
|
||||
case BT_SUPERBLK:
|
||||
if (bp != &sblk)
|
||||
pfatal("BUFFER 0x%x DOES NOT MATCH SBLK 0x%x\n",
|
||||
(u_int)bp, (u_int)&sblk);
|
||||
pfatal("BUFFER %p DOES NOT MATCH SBLK %p\n",
|
||||
bp, &sblk);
|
||||
blwrite(fd, bp->b_un.b_buf, bp->b_bno, bp->b_size);
|
||||
for (i = 0, j = 0; i < sblock.fs_cssize; i += sblock.fs_bsize,
|
||||
j++) {
|
||||
|
|
Loading…
Reference in a new issue