From: Flavio Leitner Subject: gcc-4.0 - get_header Date: Fri, 24 Jun 2005 15:01:35 -0300 Message-ID: <20050624180135.GF3577@conectiva.com.br> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel List-Id: xen-devel@lists.xenproject.org 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 =3D=3D=3D=3D=3D tools/libxc/xc_load_aout9.c 1.1 vs edited =3D=3D=3D=3D=3D --- 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; =20 - 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; =20 - 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; =20 - 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; } --=20 Fl=E1vio Bruno Leitner [0EA2 7F40 4CF4 1E63 4AF6 33C0 3E10 E205 F251 EDDA]