gcc-4.0 - get_header
Hello!
get_header() use image as unsigned char and must be that way because of operations with bit shifting but gcc4 dislike it.
----
signedness fix for gcc-4.0
(get_header)
Signed-off-by Flavio B. Leitner <[email protected]>
===== tools/libxc/xc_load_aout9.c 1.1 vs edited =====
tools/libxc/xc_load_aout9.c +3 -3
@@ -30,7 +30,7 @@ probe_aout9( {struct Exec ehdr; -if (!get_header (image, image_size, &ehdr)) { +if (!get_header ((unsigned char *) image, image_size, &ehdr)) {ERROR ("Kernel image does not have a a.out9 header." );return -EINVAL ; }
@@ -49,7 +49,7 @@ parseaout9image(struct Exec ehdr;unsigned long start, txtsz, end; -if (!get_header (image, image_size, &ehdr)) { +if (!get_header ((unsigned char *) image, image_size, &ehdr)) {ERROR ("Kernel image does not have a a.out9 header." );return -EINVAL ; }
@@ -85,7 +85,7 @@ loadaout9image(struct Exec ehdr;unsigned long txtsz; -if (!get_header (image, image_size, &ehdr)) { +if (!get_header ((unsigned char *) image, image_size, &ehdr)) {ERROR ("Kernel image does not have a a.out9 header." );return -EINVAL ; }
Signature · 2 lines
Flávio Bruno Leitner <[email protected]> [0EA2 7F40 4CF4 1E63 4AF6 33C0 3E10 E205 F251 EDDA]