1 Return-Path: <schnouki@schnouki.net>
\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 65CD5429E3B
\r
6 for <notmuch@notmuchmail.org>; Tue, 17 Jan 2012 02:51:12 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-0.1 tagged_above=-999 required=5
\r
12 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1]
\r
14 Received: from olra.theworths.org ([127.0.0.1])
\r
15 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
16 with ESMTP id bHqzcNgLEP1L for <notmuch@notmuchmail.org>;
\r
17 Tue, 17 Jan 2012 02:51:08 -0800 (PST)
\r
18 Received: from ks3536.kimsufi.com (schnouki.net [87.98.217.222])
\r
19 by olra.theworths.org (Postfix) with ESMTP id AEF74429E2F
\r
20 for <notmuch@notmuchmail.org>; Tue, 17 Jan 2012 02:51:08 -0800 (PST)
\r
21 Received: from thor.loria.fr (thor.loria.fr [152.81.12.250])
\r
22 by ks3536.kimsufi.com (Postfix) with ESMTPSA id E51D66A002A;
\r
23 Tue, 17 Jan 2012 11:51:07 +0100 (CET)
\r
24 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=schnouki.net;
\r
25 s=key-schnouki; t=1326797468;
\r
26 bh=eEEwb9ekZaZhwqnf7kfbYYoRAJ5IvE6X8h+LQMvEPiU=;
\r
27 h=From:To:Subject:Date:Message-Id:In-Reply-To:References;
\r
28 b=Uu9cONIyk4jH29MhIa6BQ4Sk7nApRDtnSyhYIryaPOg6auq+enTXKQ+a+JCgKLZ9r
\r
29 udGnlK2IdazDsK5c28jPnI0K7wP9PXDIAobuwPKTqmZQQOpUVyeoL4jHrIas7Ocw2a
\r
30 gPBgFGqZhmr73hrpfLrmLf4VKZkgmIquZT23oFzc=
\r
31 From: Thomas Jost <schnouki@schnouki.net>
\r
32 To: notmuch@notmuchmail.org
\r
33 Subject: [PATCH v2 1/2] show: don't use hex literals in JSON output
\r
34 Date: Tue, 17 Jan 2012 11:50:52 +0100
\r
35 Message-Id: <1326797453-9405-1-git-send-email-schnouki@schnouki.net>
\r
36 X-Mailer: git-send-email 1.7.8.3
\r
37 In-Reply-To: <8739bea9lc.fsf@thor.loria.fr>
\r
38 References: <8739bea9lc.fsf@thor.loria.fr>
\r
39 X-BeenThere: notmuch@notmuchmail.org
\r
40 X-Mailman-Version: 2.1.13
\r
42 List-Id: "Use and development of the notmuch mail system."
\r
43 <notmuch.notmuchmail.org>
\r
44 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
45 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
46 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
47 List-Post: <mailto:notmuch@notmuchmail.org>
\r
48 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
49 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
50 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
51 X-List-Received-Date: Tue, 17 Jan 2012 10:51:12 -0000
\r
53 JSON does not support hex literals (0x..) so numbers must be formatted as %d
\r
56 notmuch-show.c | 2 +-
\r
57 1 files changed, 1 insertions(+), 1 deletions(-)
\r
59 diff --git a/notmuch-show.c b/notmuch-show.c
\r
60 index d14dac9..91f566c 100644
\r
61 --- a/notmuch-show.c
\r
62 +++ b/notmuch-show.c
\r
63 @@ -641,7 +641,7 @@ format_part_sigstatus_json (const GMimeSignatureValidity* validity)
\r
64 printf (", \"keyid\": %s", json_quote_str (ctx_quote, signer->keyid));
\r
66 if (signer->errors != GMIME_SIGNER_ERROR_NONE) {
\r
67 - printf (", \"errors\": %x", signer->errors);
\r
68 + printf (", \"errors\": %d", signer->errors);
\r