[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] 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 <fbl@xxxxxxxxxxxxxxxx> ===== tools/libxc/xc_load_aout9.c 1.1 vs edited ===== --- 1.1/tools/libxc/xc_load_aout9.c 2005-06-24 06:51:37 -04:00 +++ edited/tools/libxc/xc_load_aout9.c 2005-06-24 10:33:30 -04:00 @@ -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; } -- Flávio Bruno Leitner <fbl@xxxxxxxxxxxxxxxx> [0EA2 7F40 4CF4 1E63 4AF6 33C0 3E10 E205 F251 EDDA] _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |