git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] 64-bit fix for date.c.

From
Junio C Hamano <gitster@pobox.com>
Date
May 6, 2009, 05:51 UTC
Message-ID
<7vvdoeye1c.fsf@alter.siamese.dyndns.org>
In-Reply-To
<20090504143112.GA14214@coredump.intra.peff.net>
Jeff King <peff@peff.net> writes:
Show 23 quoted lines
> On Mon, May 04, 2009 at 04:26:14PM +0200, Bernd Ahlers wrote:
>
>> Jeff King [Mon, Apr 06, 2009 at 03:06:58PM -0400] wrote:
>> >On Mon, Apr 06, 2009 at 07:26:37PM +0200, Bernd Ahlers wrote:
>> >
>> >> @@ -871,13 +871,15 @@ unsigned long approxidate(const char *date)
>> >>  	struct timeval tv;
>> >> +	time_t time_sec;
>> >> [...]
>> >>  	gettimeofday(&tv, NULL);
>> >> -	localtime_r(&tv.tv_sec, &tm);
>> >> +	time_sec = tv.tv_sec;
>> >> +	localtime_r(&time_sec, &tm);
>> >
>> >Hmph. According to POSIX, tv_sec _is_ a time_t. But I see on FreeBSD,
>> >also, it is actually a "long". So I think this fix makes sense.
>> >
>> Okay. So what's the next step to get this committed? :)
>
> Looks like Junio missed it the first time around, so re-send it to him,
> cc'ing the list. And you can add my
>
>   Acked-by: Jeff King <peff@peff.net>
Thanks.
Previous: Jeff KingNext: Tony Finch
Message 5 of 7 in “64-bit fix for date.c.”
  1. 64-bit fix for date.c.Bernd Ahlers, Apr 6, 2009
  2. Jeff KingApr 6, 2009
  3. Bernd AhlersMay 4, 2009
  4. Jeff KingMay 4, 2009
  5. Junio C HamanoMay 6, 2009
  6. Tony FinchMay 6, 2009
  7. Jeff KingMay 6, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.