From 408f8db182e9d020b5ba2af7d650314ddba1eb84 Mon Sep 17 00:00:00 2001 From: Daniel Jacobowitz Date: Sun, 10 Feb 2002 18:47:48 +0000 Subject: [PATCH] 2002-02-10 Daniel Jacobowitz * coffdump.c: Include "getopt.h" after "bucomm.h" so that macros are defined correctly. * nlmconv.c: Add PARAMS ((const time_t *)) to localtime prototype. Prototype main. * nlmheader.y: Add PARAMS ((int)) to strerror prototype. --- binutils/ChangeLog | 8 ++++++++ binutils/coffdump.c | 2 +- binutils/nlmconv.c | 4 +++- binutils/nlmheader.y | 2 +- 4 files changed, 13 insertions(+), 3 deletions(-) diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 8d12b27..53d5869 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,11 @@ +2002-02-10 Daniel Jacobowitz + + * coffdump.c: Include "getopt.h" after "bucomm.h" + so that macros are defined correctly. + * nlmconv.c: Add PARAMS ((const time_t *)) to localtime + prototype. Prototype main. + * nlmheader.y: Add PARAMS ((int)) to strerror prototype. + 2002-02-06 Alexandre Oliva * MAINTAINERS: Added self as SH co-maintainer. diff --git a/binutils/coffdump.c b/binutils/coffdump.c index db5034e..065e9e1 100644 --- a/binutils/coffdump.c +++ b/binutils/coffdump.c @@ -24,11 +24,11 @@ it out so we can test the grokker. */ #include -#include #include #include "coffgrok.h" #include "bucomm.h" +#include "getopt.h" static int atnl; diff --git a/binutils/nlmconv.c b/binutils/nlmconv.c index e2541e3..f064271 100644 --- a/binutils/nlmconv.c +++ b/binutils/nlmconv.c @@ -59,7 +59,7 @@ extern char *strerror PARAMS ((int)); #ifndef localtime -extern struct tm *localtime (); +extern struct tm *localtime PARAMS ((const time_t *)); #endif #ifndef SEEK_SET @@ -122,6 +122,8 @@ static struct option long_options[] = /* Local routines. */ +int main PARAMS ((int, char **)); + static void show_usage PARAMS ((FILE *, int)); static const char *select_output_format PARAMS ((enum bfd_architecture, unsigned long, boolean)); diff --git a/binutils/nlmheader.y b/binutils/nlmheader.y index 5d83f31..f2a306d 100644 --- a/binutils/nlmheader.y +++ b/binutils/nlmheader.y @@ -494,7 +494,7 @@ string_list: /* If strerror is just a macro, we want to use the one from libiberty since it will handle undefined values. */ #undef strerror -extern char *strerror (); +extern char *strerror PARAMS ((int)); /* The lexer is simple, too simple for flex. Keywords are only recognized at the start of lines. Everything else must be an -- 2.7.4