Commit b8d9ea1d authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] gcc-3.5: hfs fixes

fs/hfs/file_hdr.c: In function `dup_layout':
fs/hfs/file_hdr.c:246: error: invalid lvalue in assignment
parent 40876b4b
......@@ -243,7 +243,8 @@ static struct hfs_hdr_layout *dup_layout(const struct hfs_hdr_layout *old)
if (HFS_NEW(new)) {
memcpy(new, old, sizeof(*new));
for (lcv = 0; lcv < new->entries; ++lcv) {
(char *)(new->order[lcv]) += (char *)new - (char *)old;
new->order[lcv] = (struct hfs_hdr_descr *)
((char *)new->order[lcv] + ((char *)new - (char *)old));
}
}
return new;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment