[binutils-gdb] Re: BFD_INIT_MAGIC
Alan Modra
amodra@sourceware.org
Mon Oct 15 22:37:00 GMT 2018
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=0e0dd7f1e8b64efff9a981d0421ffeaeff70cd20
commit 0e0dd7f1e8b64efff9a981d0421ffeaeff70cd20
Author: Alan Modra <amodra@gmail.com>
Date: Tue Oct 16 09:01:55 2018 +1030
Re: BFD_INIT_MAGIC
I should know better than to introduce the first use of size_t in
bfd.h.
PR 23534
* init.c (bfd_init): Return an unsigned int.
bfd-in2.h: Regenerate.
Diff:
---
bfd/ChangeLog | 6 ++++++
bfd/bfd-in2.h | 2 +-
bfd/init.c | 4 ++--
3 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 9e0f124..5031fff 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,9 @@
+2018-10-16 Alan Modra <amodra@gmail.com>
+
+ PR 23534
+ * init.c (bfd_init): Return an unsigned int.
+ bfd-in2.h: Regenerate.
+
2018-10-15 Alan Modra <amodra@gmail.com>
PR 23534
diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h
index beb695a..ee8cd7e 100644
--- a/bfd/bfd-in2.h
+++ b/bfd/bfd-in2.h
@@ -1080,7 +1080,7 @@ extern void elf32_csky_next_input_section
extern int elf32_csky_setup_section_lists
(bfd *, struct bfd_link_info *);
/* Extracted from init.c. */
-size_t bfd_init (void);
+unsigned int bfd_init (void);
/* Value returned by bfd_init. */
diff --git a/bfd/init.c b/bfd/init.c
index ad10981..971d322 100644
--- a/bfd/init.c
+++ b/bfd/init.c
@@ -38,7 +38,7 @@ FUNCTION
bfd_init
SYNOPSIS
- size_t bfd_init (void);
+ unsigned int bfd_init (void);
DESCRIPTION
This routine must be called before any other BFD function to
@@ -54,7 +54,7 @@ DESCRIPTION
/* Actually, there is currently nothing for this function to do.
However, someday it may be needed, so keep it around. */
-size_t
+unsigned int
bfd_init (void)
{
return BFD_INIT_MAGIC;
More information about the Binutils-cvs
mailing list