This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Fix for compile time warning in binutils/nlmconv.c
- From: Nick Clifton <nickc at redhat dot com>
- To: binutils at sources dot redhat dot com
- Date: Tue, 15 Feb 2005 14:41:02 +0000
- Subject: Fix for compile time warning in binutils/nlmconv.c
Hi Guys,
I am going to apply the patch below to fix a compile time warning
when building nlmconv.c, although I am not sure if this is the
proper way to fix the problem. The reason is that I am not sure why
the parameterless prototype for localtime() is included at all.
Presumably there are build environments out there where this
function is not prototyped, or the header containing the prototype
is not pulled in. To me this sounds like a configure problem, but
for now I am keeping things simple.
Cheers
Nick
binutils/ChangeLog
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.
Index: binutils/nlmconv.c
===================================================================
RCS file: /cvs/src/src/binutils/nlmconv.c,v
retrieving revision 1.21
diff -c -3 -p -r1.21 nlmconv.c
*** binutils/nlmconv.c 4 Jan 2005 15:51:47 -0000 1.21
--- binutils/nlmconv.c 15 Feb 2005 14:20:18 -0000
***************
*** 59,65 ****
extern char *strerror (int);
#ifndef localtime
! extern struct tm *localtime ();
#endif
#ifndef SEEK_SET
--- 59,65 ----
extern char *strerror (int);
#ifndef localtime
! extern struct tm *localtime (const time_t *);
#endif
#ifndef SEEK_SET