From a0ad303552a9f203f4dbd697403f058756d0f92d Mon Sep 17 00:00:00 2001 From: Steve Chamberlain Date: Wed, 8 May 1991 19:23:35 +0000 Subject: [PATCH] Lint --- bfd/libbfd.h | 2 +- bfd/libieee.h | 23 +++++++++++------------ ld/ldlang.c | 4 ++-- 3 files changed, 14 insertions(+), 15 deletions(-) diff --git a/bfd/libbfd.h b/bfd/libbfd.h index 0c84796e405..ad75ac2f0cd 100644 --- a/bfd/libbfd.h +++ b/bfd/libbfd.h @@ -102,7 +102,7 @@ PROTO (void, _do_putlshort, (int data, unsigned char *addr)); PROTO (boolean, bfd_false, (bfd *ignore)); PROTO (boolean, bfd_true, (bfd *ignore)); -PROTO (void *, bfd_nullvoidptr, (bfd *ignore)); +PROTO (PTR, bfd_nullvoidptr, (bfd *ignore)); PROTO (int, bfd_0, (bfd *ignore)); PROTO (unsigned int, bfd_0u, (bfd *ignore)); PROTO (void, bfd_void, (bfd *ignore)); diff --git a/bfd/libieee.h b/bfd/libieee.h index 8d5679dcd9f..59e07e484fb 100644 --- a/bfd/libieee.h +++ b/bfd/libieee.h @@ -38,41 +38,40 @@ typedef struct ieee_per_section -typedef struct { +typedef struct +{ boolean read_symbols; boolean read_data; -unsigned char *input_p; -unsigned char *first_byte; + unsigned char *input_p; + unsigned char *first_byte; file_ptr output_cursor; /* Map of section indexes to section ptrs */ asection * section_table[NSECTIONS]; ieee_address_descriptor_type ad; ieee_module_begin_type mb; ieee_w_variable_type w; - + unsigned int section_count; - struct obstack ieee_obstack; - - + unsigned int map_idx; /* List of GLOBAL EXPORT symbols */ ieee_symbol_type *external_symbols; /* List of UNDEFINED symbols */ ieee_symbol_type *external_reference; - + /* When the symbols have been canonicalized, they are in a - * special order, we remember various bases here.. */ + * special order, we remember various bases here.. */ unsigned int external_symbol_max_index; unsigned int external_symbol_min_index; unsigned int external_symbol_count; int external_symbol_base_offset; - + unsigned int external_reference_max_index; unsigned int external_reference_min_index; unsigned int external_reference_count; int external_reference_base_offset; - - + + bfd *abfd; boolean symbol_table_full; } ieee_data_type; diff --git a/ld/ldlang.c b/ld/ldlang.c index 453666d5e12..50bb1035836 100644 --- a/ld/ldlang.c +++ b/ld/ldlang.c @@ -506,7 +506,7 @@ DEFUN(init_os,(s), /* We initialize an output sections output offset to minus its own */ /* vma to allow us to output a section through itself */ s->bfd_section->output_offset = 0; - get_userdata( s->bfd_section) = new; + get_userdata( s->bfd_section) = (PTR)new; } /*********************************************************************** @@ -1996,7 +1996,7 @@ DEFUN_VOID(lang_process) current_target = default_target; lang_for_each_statement(open_input_bfds); - common_section.userdata = &common_section_userdata; + common_section.userdata = (PTR)&common_section_userdata; /* Run through the contours of the script and attatch input sections to the correct output sections -- 2.30.2