1 Return-Path: <jani@nikula.org>
\r
2 X-Original-To: notmuch@notmuchmail.org
\r
3 Delivered-To: notmuch@notmuchmail.org
\r
4 Received: from localhost (localhost [127.0.0.1])
\r
5 by olra.theworths.org (Postfix) with ESMTP id 322C5431FB6
\r
6 for <notmuch@notmuchmail.org>; Tue, 28 Oct 2014 01:17:11 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5
\r
12 tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled
\r
13 Received: from olra.theworths.org ([127.0.0.1])
\r
14 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
15 with ESMTP id kigK+XqnaCKH for <notmuch@notmuchmail.org>;
\r
16 Tue, 28 Oct 2014 01:17:07 -0700 (PDT)
\r
17 Received: from mail-wi0-f176.google.com (mail-wi0-f176.google.com
\r
18 [209.85.212.176]) (using TLSv1 with cipher RC4-SHA (128/128 bits))
\r
19 (No client certificate requested)
\r
20 by olra.theworths.org (Postfix) with ESMTPS id 75AE4431FAE
\r
21 for <notmuch@notmuchmail.org>; Tue, 28 Oct 2014 01:17:07 -0700 (PDT)
\r
22 Received: by mail-wi0-f176.google.com with SMTP id n3so8476363wiv.9
\r
23 for <notmuch@notmuchmail.org>; Tue, 28 Oct 2014 01:17:06 -0700 (PDT)
\r
24 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
\r
25 d=1e100.net; s=20130820;
\r
26 h=x-gm-message-state:from:to:cc:subject:date:message-id;
\r
27 bh=eRzFfNCQalOmt9JmCRep8yJFyAJ22e+Czep+17yghic=;
\r
28 b=ECbS63l3FanLC1etnXKPFoDwqpiTmTgokXFlKd9NkYX4L5fIrz2epeW0uwjFX4TTj2
\r
29 wMhF/pHDdAcKKqfbxItUmwe81KfRcQQtq0CrshdmbmN8dNK6fjZqjczn1RYmoVSqDiJK
\r
30 EJXdkKPoCawJX9VPS2rS8ZkcjnJq9Wah91cGLa+Q2OYLX8wB4LbffKvFTlIC52sgvXwa
\r
31 hTgrXe/BXsNDToHJbHbLXtdHTsjpsVfW0jLtfLa88x0GZ3Qtx6YWAadF4yH7ZX/yTFdB
\r
32 lVYhVP3tUNxI48EFPEokO/pH51tpCAK1r9FWxTR/eZZDx2Mn0qIOzNHvpXaQn7gJLpqO
\r
35 ALoCoQmrtdvL6XmVLBJh8X57FsWO9RTNzlQ1xu+FJG9xGkm9rtWhT+TmhQNytpksqsc3bZACTBDd
\r
36 X-Received: by 10.180.76.41 with SMTP id h9mr2787026wiw.40.1414484226225;
\r
37 Tue, 28 Oct 2014 01:17:06 -0700 (PDT)
\r
38 Received: from localhost ([2001:4b98:dc0:43:216:3eff:fe1b:25f3])
\r
39 by mx.google.com with ESMTPSA id wr9sm896934wjb.42.2014.10.28.01.17.05
\r
40 for <multiple recipients>
\r
41 (version=TLSv1.1 cipher=RC4-SHA bits=128/128);
\r
42 Tue, 28 Oct 2014 01:17:05 -0700 (PDT)
\r
43 From: Jani Nikula <jani@nikula.org>
\r
44 To: notmuch@notmuchmail.org
\r
45 Subject: [PATCH] cli: cast timeval fields to long for format
\r
46 Date: Tue, 28 Oct 2014 09:17:26 +0100
\r
47 Message-Id: <1414484246-19659-1-git-send-email-jani@nikula.org>
\r
48 X-Mailer: git-send-email 1.7.2.5
\r
49 X-BeenThere: notmuch@notmuchmail.org
\r
50 X-Mailman-Version: 2.1.13
\r
52 List-Id: "Use and development of the notmuch mail system."
\r
53 <notmuch.notmuchmail.org>
\r
54 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
55 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
56 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
57 List-Post: <mailto:notmuch@notmuchmail.org>
\r
58 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
59 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
60 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
61 X-List-Received-Date: Tue, 28 Oct 2014 08:17:11 -0000
\r
63 This hides platform differences between struct timeval field types.
\r
65 notmuch-insert.c | 2 +-
\r
66 1 files changed, 1 insertions(+), 1 deletions(-)
\r
68 diff --git a/notmuch-insert.c b/notmuch-insert.c
\r
69 index 7074077..0d2d810 100644
\r
70 --- a/notmuch-insert.c
\r
71 +++ b/notmuch-insert.c
\r
72 @@ -197,7 +197,7 @@ tempfilename (const void *ctx)
\r
73 gettimeofday (&tv, NULL);
\r
75 filename = talloc_asprintf (ctx, "%ld.M%ldP%d.%s",
\r
76 - tv.tv_sec, tv.tv_usec, pid, hostname);
\r
77 + (long) tv.tv_sec, (long) tv.tv_usec, pid, hostname);
\r
79 fprintf (stderr, "Error: %s\n", strerror (ENOMEM));
\r