Re: [PATCH] cli: cast timeval fields to long for format
authorDavid Edmondson <dme@dme.org>
Tue, 28 Oct 2014 09:15:28 +0000 (09:15 +0000)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 18:05:43 +0000 (10:05 -0800)
72/de1e75bf17791f91aafb575bd655f3b83f98cd [new file with mode: 0644]

diff --git a/72/de1e75bf17791f91aafb575bd655f3b83f98cd b/72/de1e75bf17791f91aafb575bd655f3b83f98cd
new file mode 100644 (file)
index 0000000..df2bdb4
--- /dev/null
@@ -0,0 +1,103 @@
+Return-Path: <dme@dme.org>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 863E3431FB6\r
+       for <notmuch@notmuchmail.org>; Tue, 28 Oct 2014 02:15:42 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.699\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.699 tagged_above=-999 required=5\r
+       tests=[RCVD_IN_DNSWL_LOW=-0.7, UNPARSEABLE_RELAY=0.001]\r
+       autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id JO-1oRQBv-6v for <notmuch@notmuchmail.org>;\r
+       Tue, 28 Oct 2014 02:15:35 -0700 (PDT)\r
+Received: from mail-wi0-f181.google.com (mail-wi0-f181.google.com\r
+       [209.85.212.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id 4B5EB431FAE\r
+       for <notmuch@notmuchmail.org>; Tue, 28 Oct 2014 02:15:35 -0700 (PDT)\r
+Received: by mail-wi0-f181.google.com with SMTP id n3so873139wiv.8\r
+       for <notmuch@notmuchmail.org>; Tue, 28 Oct 2014 02:15:32 -0700 (PDT)\r
+X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
+       d=1e100.net; s=20130820;\r
+       h=x-gm-message-state:to:subject:in-reply-to:references:user-agent\r
+       :from:date:message-id:mime-version:content-type;\r
+       bh=DvV1lTTtdJ6R3wVD6Do+y9ZT8xMSQae8gq7xWUFzy2E=;\r
+       b=TgKuJMITD2sMvLbeGJ9K4kiN2dKLnb4rwjDBM6Lf8PO4XCtgIRLkGgf+6YF9ACjrBi\r
+       qUECZGPUAGwc63Zf0ZfjJVQivPB8q5p37c+ydYqLJSFdjWSWVq7WsxYp3+A/s+MDFjhG\r
+       P/iIB7Wf+LRC2U1jjnO0zzvun3kZvCDlXpLzpnThoMk8jDSyMlwSfPeJeGceqVfnuxJ8\r
+       HCRAr6JmUbcXdSAjU1L/lJpQLXIPHJH9aevjMr1Tak6CxT+4d+xrL6dcy8DP7wxQW6oP\r
+       P/bJIHOhp3fIF/dtlxSx64WFo5iUOy6ZEOBYPmfn6A8zHrFV8Mx/8nAEUsUwXt24oc15\r
+       ZUGA==\r
+X-Gm-Message-State:\r
+ ALoCoQm+K/cpaht2f54Zr9miBu+4Oue1ruU5FiyodTput/sSwa8auLpKKYYkeC8PbttO3nT7fV4H\r
+X-Received: by 10.194.122.104 with SMTP id lr8mr2551455wjb.28.1414487731605;\r
+       Tue, 28 Oct 2014 02:15:31 -0700 (PDT)\r
+Received: from disaster-area.hh.sledj.net\r
+       ([2a01:348:1a2:1:ea39:35ff:fe2c:a227])\r
+       by mx.google.com with ESMTPSA id mc4sm1468978wic.6.2014.10.28.02.15.30\r
+       for <multiple recipients>\r
+       (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\r
+       Tue, 28 Oct 2014 02:15:30 -0700 (PDT)\r
+Received: from localhost (30000@localhost [local]);\r
+       by localhost (OpenSMTPD) with ESMTPA id 3dc128ec;\r
+       Tue, 28 Oct 2014 09:15:28 +0000 (UTC)\r
+To: Jani Nikula <jani@nikula.org>, notmuch@notmuchmail.org\r
+Subject: Re: [PATCH] cli: cast timeval fields to long for format\r
+In-Reply-To: <1414484246-19659-1-git-send-email-jani@nikula.org>\r
+References: <1414484246-19659-1-git-send-email-jani@nikula.org>\r
+User-Agent: Notmuch/0.18.1 (http://notmuchmail.org) Emacs/24.3.1\r
+       (x86_64-apple-darwin14.0.0)\r
+From: David Edmondson <dme@dme.org>\r
+Date: Tue, 28 Oct 2014 09:15:28 +0000\r
+Message-ID: <m2vbn41rnz.fsf@heart-of-gold.hh.sledj.net>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Tue, 28 Oct 2014 09:15:42 -0000\r
+\r
+On Tue, Oct 28 2014, Jani Nikula wrote:\r
+> This hides platform differences between struct timeval field types.\r
+\r
+Good for me. Tested on Debian Testing and OS X 10.10 (which previously\r
+emitted a compiler warning).\r
+\r
+> ---\r
+>  notmuch-insert.c |    2 +-\r
+>  1 files changed, 1 insertions(+), 1 deletions(-)\r
+>\r
+> diff --git a/notmuch-insert.c b/notmuch-insert.c\r
+> index 7074077..0d2d810 100644\r
+> --- a/notmuch-insert.c\r
+> +++ b/notmuch-insert.c\r
+> @@ -197,7 +197,7 @@ tempfilename (const void *ctx)\r
+>      gettimeofday (&tv, NULL);\r
+>  \r
+>      filename = talloc_asprintf (ctx, "%ld.M%ldP%d.%s",\r
+> -                            tv.tv_sec, tv.tv_usec, pid, hostname);\r
+> +                            (long) tv.tv_sec, (long) tv.tv_usec, pid, hostname);\r
+>      if (! filename)\r
+>      fprintf (stderr, "Error: %s\n", strerror (ENOMEM));\r
+>  \r
+> -- \r
+> 1.7.2.5\r
+>\r
+> _______________________________________________\r
+> notmuch mailing list\r
+> notmuch@notmuchmail.org\r
+> http://notmuchmail.org/mailman/listinfo/notmuch\r