mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-07 13:14:51 +00:00
Fix -fstrict-aliasing warning.
This commit is contained in:
parent
3911a26e74
commit
1675d675a7
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=163866
@ -663,6 +663,7 @@ void
|
|||||||
gjournal_check(const char *filesys)
|
gjournal_check(const char *filesys)
|
||||||
{
|
{
|
||||||
struct ufs2_dinode *dino;
|
struct ufs2_dinode *dino;
|
||||||
|
void *p;
|
||||||
struct cgchain *cgc;
|
struct cgchain *cgc;
|
||||||
struct cg *cgp;
|
struct cg *cgp;
|
||||||
uint8_t *inosused, *blksfree;
|
uint8_t *inosused, *blksfree;
|
||||||
@ -714,8 +715,9 @@ gjournal_check(const char *filesys)
|
|||||||
/* Unallocated? Skip it. */
|
/* Unallocated? Skip it. */
|
||||||
if (isclr(inosused, cino))
|
if (isclr(inosused, cino))
|
||||||
continue;
|
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);
|
err(1, "getino(cg=%d ino=%d)", cg, ino);
|
||||||
|
dino = p;
|
||||||
/* Not a regular file nor directory? Skip it. */
|
/* Not a regular file nor directory? Skip it. */
|
||||||
if (!S_ISREG(dino->di_mode) && !S_ISDIR(dino->di_mode))
|
if (!S_ISREG(dino->di_mode) && !S_ISDIR(dino->di_mode))
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user