debugreiserfs: fix dereferencing type-punned pointer warning
This patch fixes the following warning: unpack.c:536:2: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] Signed-off-by: Jeff Mahoney <jeffm@suse.com>
This commit is contained in:
1 parent
3aa83f72ca
commit
c21c96f7c3
1 file changed
+2
-3
@@ -532,9 +532,8 @@ void unpack_partition (int fd, int jfd)
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
fread (c + 1, 1, 1, stdin);
|
fread16 (&magic16);
|
||||||
magic16 = le16_to_cpu(*(__u16 *)c);
|
magic16 = le16_to_cpu(magic16);
|
||||||
/*fread16 (&magic16);*/
|
|
||||||
|
|
||||||
switch (magic16 & 0xff) {
|
switch (magic16 & 0xff) {
|
||||||
case LEAF_START_MAGIC:
|
case LEAF_START_MAGIC:
|
||||||
|
|||||||
Reference in new issue
Block a user