summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2005-02-15 14:31:13 +0000
committerNick Clifton <nickc@redhat.com>2005-02-15 14:31:13 +0000
commit4a59aeb4c48be07cba5ed5212f98a003cc2f637a (patch)
tree679695d3eadc16876b2e20d2f1e2a1379134da94
parenta0beab6bcc8380e9c2b7bec035586f84d14e59ca (diff)
downloadbinutils-redhat-4a59aeb4c48be07cba5ed5212f98a003cc2f637a.tar.gz
Provide a full prototype for the localtime() function in order to avoid a
compile time warning.
-rw-r--r--binutils/ChangeLog5
-rw-r--r--binutils/nlmconv.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index a5edcbf15e..3363eb620e 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,8 @@
+2005-02-15 Nick Clifton <nickc@redhat.com>
+
+ * nlmconv.c: Provide a full prototype for the localtime() function
+ in order to avoid a compile time warning.
+
2005-02-11 H.J. Lu <hongjiu.lu@intel.com>
* readelf.c (group_count): Don't initialize it.
diff --git a/binutils/nlmconv.c b/binutils/nlmconv.c
index 0d5966a6e9..46b439751d 100644
--- a/binutils/nlmconv.c
+++ b/binutils/nlmconv.c
@@ -59,7 +59,7 @@
extern char *strerror (int);
#ifndef localtime
-extern struct tm *localtime ();
+extern struct tm *localtime (const time_t *);
#endif
#ifndef SEEK_SET