From 86033394008aa009b3382199efa24b0cfa749862 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Wed, 1 Mar 2000 20:39:07 +0000 Subject: Fix building with --enable-targets=all --- bfd/peicode.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'bfd/peicode.h') diff --git a/bfd/peicode.h b/bfd/peicode.h index b94d0f8..539cd7b 100644 --- a/bfd/peicode.h +++ b/bfd/peicode.h @@ -1,5 +1,5 @@ /* Support for the generic parts of PE/PEI, for BFD. - Copyright 1995, 1996, 1997, 1998, 1999 Free Software Foundation, Inc. + Copyright 1995, 1996, 1997, 1998, 1999, 2000 Free Software Foundation, Inc. Written by Cygnus Solutions. This file is part of BFD, the Binary File Descriptor library. @@ -697,7 +697,7 @@ typedef struct } jump_table; -jump_table jtab[] = +static jump_table jtab[] = { #ifdef I386MAGIC { I386MAGIC, @@ -761,7 +761,7 @@ pe_ILF_build_a_bfd (bfd * abfd, struct internal_filehdr internal_f; unsigned int import_type; unsigned int import_name_type; - asection_ptr id2, id4, id5, id6, id7, text; + asection_ptr id2, id4, id5, id6 = NULL, id7, text; text = NULL; @@ -1197,7 +1197,7 @@ _("%s: Recognised but unhandled machine type (0x%x) in Import Library Format arc source_dll = ptr + strlen (ptr) + 1; /* Verify that the strings are null terminated. */ - if (ptr[size - 1] != 0 || ((source_dll - ptr) >= size)) + if (ptr[size - 1] != 0 || ((unsigned long)(source_dll - ptr) >= size)) { _bfd_error_handler (_("%s: string not null terminated in ILF object file."), -- cgit v1.1