]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfsprogs: fix warning in adfs superblock probe
authorDave Chinner <david@fromorbit.com>
Mon, 18 Jan 2010 00:09:17 +0000 (11:09 +1100)
committerDave Chinner <david@fromorbit.com>
Mon, 18 Jan 2010 00:09:17 +0000 (11:09 +1100)
commit69093797545e9005745f8cb9ee817e635407c63f
treed52ac9e498af7d64410d8d0b66317285be011c0b
parent904f84747040989881229ac3540820c9d8a9a684
xfsprogs: fix warning in adfs superblock probe

The probe gets an array subscript warning because gcc is not smart
enough to realise that a structure made up of multiple byte arrays
in it can be referenced as a flat buffer and it is valid to access
bytes beyond the first array in the structure....

Fix it by passing the adfs superblock in and using the internal
checksum array to get the checksum value.

Signed-off-by: Dave Chinner <david@fromorbit.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
libdisk/fstype.c