Johannes Schindelin <Johannes.Schindelin@xxxxxx> writes: > @@ -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@xxxxxxxxxxxxxx GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html