From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS31976 209.132.180.0/23 X-Spam-Status: No, score=-4.5 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD shortcircuit=no autolearn=ham autolearn_force=no version=3.4.0 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by dcvr.yhbt.net (Postfix) with ESMTP id 8799E2018E for ; Tue, 12 Jul 2016 07:41:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750865AbcGLHlE (ORCPT ); Tue, 12 Jul 2016 03:41:04 -0400 Received: from mail-out.m-online.net ([212.18.0.9]:47036 "EHLO mail-out.m-online.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750748AbcGLHlC (ORCPT ); Tue, 12 Jul 2016 03:41:02 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 3rpYmW0RKQz3hjYN; Tue, 12 Jul 2016 09:40:59 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.68]) by mail.m-online.net (Postfix) with ESMTP id 3rpYmW003RzvkQb; Tue, 12 Jul 2016 09:40:58 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.68]) (amavisd-new, port 10024) with ESMTP id CMi8KEVfFQhi; Tue, 12 Jul 2016 09:40:57 +0200 (CEST) X-Auth-Info: jpFhUjGQgqws2dYXLeG0hl+exZmPLOJ+T1YnV2wWfZtiYzZ2ep0JcCUjKzXaDM7m Received: from hawking.suse.de (nat.nue.novell.com [195.135.221.2]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Tue, 12 Jul 2016 09:40:57 +0200 (CEST) From: Andreas Schwab To: Johannes Schindelin Cc: Junio C Hamano , Jeff King , git@vger.kernel.org Subject: Re: [ANNOUNCE] Git v2.9.1 References: <87lh17kgdy.fsf@linux-m68k.org> <20160711235417.GA26163@sigill.intra.peff.net> X-Yow: I'm QUIETLY reading the latest issue of ``BOWLING WORLD'' while my wife and two children stand QUIETLY BY.. Date: Tue, 12 Jul 2016 09:40:57 +0200 In-Reply-To: (Johannes Schindelin's message of "Tue, 12 Jul 2016 09:30:28 +0200 (CEST)") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Johannes Schindelin 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@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."