From f6af82bd4470673eef9562d4ed3a2717c1d749ab Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Mon, 21 Feb 2000 12:01:27 +0000 Subject: This lot mainly cleans up `comparison between signed and unsigned' gcc warnings. One usused var, and a macro parenthesis fix too. Also check input sections are elf when doing gc in elflink.h. --- bfd/archures.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'bfd/archures.c') diff --git a/bfd/archures.c b/bfd/archures.c index 3c7dc13..21e980e 100644 --- a/bfd/archures.c +++ b/bfd/archures.c @@ -934,7 +934,7 @@ FUNCTION bfd_octets_per_byte SYNOPSIS - int bfd_octets_per_byte(bfd *abfd); + unsigned int bfd_octets_per_byte(bfd *abfd); DESCRIPTION Return the number of octets (8-bit quantities) per target byte @@ -943,7 +943,7 @@ DESCRIPTION */ -int +unsigned int bfd_octets_per_byte (abfd) bfd * abfd; { @@ -956,8 +956,8 @@ FUNCTION bfd_arch_mach_octets_per_byte SYNOPSIS - int bfd_arch_mach_octets_per_byte(enum bfd_architecture arch, - unsigned long machine); + unsigned int bfd_arch_mach_octets_per_byte(enum bfd_architecture arch, + unsigned long machine); DESCRIPTION See bfd_octets_per_byte. @@ -966,7 +966,7 @@ DESCRIPTION available */ -int +unsigned int bfd_arch_mach_octets_per_byte (arch, mach) enum bfd_architecture arch; unsigned long mach; @@ -977,4 +977,3 @@ bfd_arch_mach_octets_per_byte (arch, mach) return ap->bits_per_byte / 8; return 1; } - -- cgit v1.1