fs/hfs/file_hdr.c: In function `dup_layout':
fs/hfs/file_hdr.c:246: error: invalid lvalue in assignment



---

 25-akpm/fs/hfs/file_hdr.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)

diff -puN fs/hfs/file_hdr.c~gcc-35-hfs-fix fs/hfs/file_hdr.c
--- 25/fs/hfs/file_hdr.c~gcc-35-hfs-fix	Fri Jan 23 13:53:58 2004
+++ 25-akpm/fs/hfs/file_hdr.c	Fri Jan 23 13:56:00 2004
@@ -243,7 +243,8 @@ static struct hfs_hdr_layout *dup_layout
 	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;

_