diff options
author | Ruslan Ermilov <ru@FreeBSD.org> | 2006-11-01 10:56:33 +0000 |
---|---|---|
committer | Ruslan Ermilov <ru@FreeBSD.org> | 2006-11-01 10:56:33 +0000 |
commit | 1675d675a72f9e6e17f224243894dd37ed3c8994 (patch) | |
tree | 278dfb28f80771020d88c488e8f09c1d2b7f8084 /sbin/fsck_ffs/gjournal.c | |
parent | 3911a26e744b6df604b312a808db35fb68145141 (diff) | |
download | src-1675d675a72f9e6e17f224243894dd37ed3c8994.tar.gz src-1675d675a72f9e6e17f224243894dd37ed3c8994.zip |
Fix -fstrict-aliasing warning.
Notes
Notes:
svn path=/head/; revision=163866
Diffstat (limited to 'sbin/fsck_ffs/gjournal.c')
-rw-r--r-- | sbin/fsck_ffs/gjournal.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sbin/fsck_ffs/gjournal.c b/sbin/fsck_ffs/gjournal.c index 3e89b3121794..8785e41d82a1 100644 --- a/sbin/fsck_ffs/gjournal.c +++ b/sbin/fsck_ffs/gjournal.c @@ -663,6 +663,7 @@ void gjournal_check(const char *filesys) { struct ufs2_dinode *dino; + void *p; struct cgchain *cgc; struct cg *cgp; uint8_t *inosused, *blksfree; @@ -714,8 +715,9 @@ gjournal_check(const char *filesys) /* Unallocated? Skip it. */ if (isclr(inosused, cino)) continue; - if (getino(disk, (void **)&dino, ino, &mode) == -1) + if (getino(disk, &p, ino, &mode) == -1) err(1, "getino(cg=%d ino=%d)", cg, ino); + dino = p; /* Not a regular file nor directory? Skip it. */ if (!S_ISREG(dino->di_mode) && !S_ISDIR(dino->di_mode)) continue; |