Re: [ANNOUNCE] Git v2.9.1
Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
Show 20 quoted lines
> @@ -88,11 +88,11 @@ static int local_tzoffset(unsigned long time)
> return offset * eastwest;
> }
>
> -void show_date_relative(unsigned long time, int tz,
> +void show_date_relative(time_t time, int tz,
> const struct timeval *now,
> struct strbuf *timebuf)
> {
> - unsigned long diff;
> + time_t diff;
> if (now->tv_sec < time) {
> strbuf_addstr(timebuf, _("in the future"));
> return;
> @@ -100,65 +100,65 @@ void show_date_relative(unsigned long time, int tz,
> diff = now->tv_sec - time;
> if (diff < 90) {
> strbuf_addf(timebuf,
> - Q_("%lu second ago", "%lu seconds ago", diff), diff);
> + Q_("%" PRIuMAX " second ago", "%" PRIuMAX " seconds ago", diff), diff);PRIuMAX isn't compatible with time_t.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."