aboutsummaryrefslogtreecommitdiff
path: root/bfd/bfd.c
diff options
context:
space:
mode:
authorJohn Gilmore <gnu@cygnus>1991-11-22 19:09:03 +0000
committerJohn Gilmore <gnu@cygnus>1991-11-22 19:09:03 +0000
commitf8adc62df477edf69a97e91aa53ebefdb9a76dae (patch)
treeaebcd0f4e6034526bb1ab6098c4bb820060120c9 /bfd/bfd.c
parent3f73352f9061aff935a4dd2a693d877747edea53 (diff)
downloadgdb-f8adc62df477edf69a97e91aa53ebefdb9a76dae.zip
gdb-f8adc62df477edf69a97e91aa53ebefdb9a76dae.tar.gz
gdb-f8adc62df477edf69a97e91aa53ebefdb9a76dae.tar.bz2
const lint
Diffstat (limited to 'bfd/bfd.c')
-rw-r--r--bfd/bfd.c23
1 files changed, 11 insertions, 12 deletions
diff --git a/bfd/bfd.c b/bfd/bfd.c
index ccf53ce..1e6d49b 100644
--- a/bfd/bfd.c
+++ b/bfd/bfd.c
@@ -166,7 +166,7 @@ $};
extern char *strerror();
-short _bfd_host_big_endian = 0x0100;
+CONST short _bfd_host_big_endian = 0x0100;
/* Accessing the above as (*(char*)&_bfd_host_big_endian), will
return 1 if the host is big-endian, 0 otherwise.
(assuming that a short is two bytes long!!! FIXME)
@@ -279,18 +279,17 @@ get_reloc_upper_bound (abfd, asect)
}
unsigned int
-bfd_canonicalize_reloc (abfd, asect, location, symbols)
- bfd *abfd;
- sec_ptr asect;
- arelent **location;
- asymbol **symbols;
+DEFUN(bfd_canonicalize_reloc,(abfd, asect, location, symbols),
+ bfd *abfd AND
+ sec_ptr asect AND
+ arelent **location AND
+ asymbol **symbols)
{
- if (abfd->format != bfd_object) {
- bfd_error = invalid_operation;
- return 0;
- }
-
- return BFD_SEND (abfd, _bfd_canonicalize_reloc, (abfd, asect, location, symbols));
+ if (abfd->format != bfd_object) {
+ bfd_error = invalid_operation;
+ return 0;
+ }
+ return BFD_SEND (abfd, _bfd_canonicalize_reloc, (abfd, asect, location, symbols));
}