summaryrefslogtreecommitdiffstats
path: root/bfd/archures.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2000-02-21 12:01:27 +0000
committerAlan Modra <amodra@gmail.com>2000-02-21 12:01:27 +0000
commitf6af82bd4470673eef9562d4ed3a2717c1d749ab (patch)
tree049fedd33d8bf74259017f441ef55ee8920b9cc2 /bfd/archures.c
parent2403ff6fdb9d23ee79863d2b2aacac46a2d8283d (diff)
downloadppe42-binutils-f6af82bd4470673eef9562d4ed3a2717c1d749ab.tar.gz
ppe42-binutils-f6af82bd4470673eef9562d4ed3a2717c1d749ab.zip
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.
Diffstat (limited to 'bfd/archures.c')
-rw-r--r--bfd/archures.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/bfd/archures.c b/bfd/archures.c
index 3c7dc13ab6..21e980e1bc 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;
}
-
OpenPOWER on IntegriCloud