From 4791dc1002c7f545e0de04e6f0b5865179c3b1c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwenol=C3=A9=20Beauchesne?= Date: Wed, 15 Dec 2004 13:24:43 +0000 Subject: fix build to expose assignments better --- mdk-stage1/insmod-modutils/obj/obj_kallsyms.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mdk-stage1/insmod-modutils/obj/obj_kallsyms.c b/mdk-stage1/insmod-modutils/obj/obj_kallsyms.c index 1836141e9..917a007e1 100644 --- a/mdk-stage1/insmod-modutils/obj/obj_kallsyms.c +++ b/mdk-stage1/insmod-modutils/obj/obj_kallsyms.c @@ -200,8 +200,8 @@ obj_kallsyms (struct obj_file *fin, struct obj_file **fout_result) /* Initial contents, header + one entry per input section. No strings. */ osec->header.sh_size = sizeof(*a_hdr) + loaded*sizeof(*a_sec); - a_hdr = (struct kallsyms_header *) osec->contents = - xmalloc(osec->header.sh_size); + a_hdr = (struct kallsyms_header *) (osec->contents = + xmalloc(osec->header.sh_size)); memset(osec->contents, 0, osec->header.sh_size); a_hdr->size = sizeof(*a_hdr); a_hdr->sections = loaded; @@ -275,8 +275,8 @@ obj_kallsyms (struct obj_file *fin, struct obj_file **fout_result) a_hdr->symbol_off + a_hdr->symbols*a_hdr->symbol_size + strings_size - strings_left; - a_hdr = (struct kallsyms_header *) osec->contents = - xrealloc(a_hdr, a_hdr->total_size); + a_hdr = (struct kallsyms_header *) (osec->contents = + xrealloc(a_hdr, a_hdr->total_size)); p = (char *)a_hdr + a_hdr->symbol_off; memcpy(p, symbols, a_hdr->symbols*a_hdr->symbol_size); free(symbols); -- cgit v1.2.1