summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGwenolé Beauchesne <gbeauchesne@mandriva.org>2004-12-15 13:24:43 +0000
committerGwenolé Beauchesne <gbeauchesne@mandriva.org>2004-12-15 13:24:43 +0000
commit4791dc1002c7f545e0de04e6f0b5865179c3b1c0 (patch)
tree4528ddfd5d7212da611a7664bd3590dcd4f5c3bf
parentb97229e102d6f03d31b6a5cd1a5a5775833be1d1 (diff)
downloaddrakx-4791dc1002c7f545e0de04e6f0b5865179c3b1c0.tar
drakx-4791dc1002c7f545e0de04e6f0b5865179c3b1c0.tar.gz
drakx-4791dc1002c7f545e0de04e6f0b5865179c3b1c0.tar.bz2
drakx-4791dc1002c7f545e0de04e6f0b5865179c3b1c0.tar.xz
drakx-4791dc1002c7f545e0de04e6f0b5865179c3b1c0.zip
fix build to expose assignments better
-rw-r--r--mdk-stage1/insmod-modutils/obj/obj_kallsyms.c8
1 files 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);