Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 9F9FC431FBD for ; Fri, 20 Jan 2012 01:39:36 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.1 X-Spam-Level: X-Spam-Status: No, score=-0.1 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id WJlKfN4qxMyW for ; Fri, 20 Jan 2012 01:39:35 -0800 (PST) Received: from ks3536.kimsufi.com (schnouki.net [87.98.217.222]) by olra.theworths.org (Postfix) with ESMTP id C4A12431FAE for ; Fri, 20 Jan 2012 01:39:35 -0800 (PST) Received: from thor.loria.fr (thor.loria.fr [152.81.12.250]) by ks3536.kimsufi.com (Postfix) with ESMTPSA id 83DC76C000A; Fri, 20 Jan 2012 10:39:23 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=schnouki.net; s=key-schnouki; t=1327052363; bh=sGUgKrRkvWOHhr2dGoQEL2FOO+aYufcSeDnImmeUeK4=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References; b=FTi1NUZkU9B6UndvHIobBs2iwU2JViUm1BltTmtbjUDywpAkuX3J4V+7LKv8Kd+cv 7qXcMN182D9W/0N9W3lGboZHB8su8xT1AvJzD5TjR35SADU4MMJqQgdb/86qLvAtIK prIN9AfxzM7+6uxEMXF2onP9sIEFyZ3RD/QO6agY= From: Thomas Jost To: notmuch@notmuchmail.org Subject: [PATCH v4 1/3] show: don't use hex literals in JSON output Date: Fri, 20 Jan 2012 10:39:23 +0100 Message-Id: <1327052365-20012-1-git-send-email-schnouki@schnouki.net> X-Mailer: git-send-email 1.7.8.4 In-Reply-To: <87fwfaemuc.fsf@thor.loria.fr> References: <87fwfaemuc.fsf@thor.loria.fr> X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Jan 2012 09:39:36 -0000 JSON does not support hex literals (0x..) so numbers must be formatted as %d instead of %x. --- notmuch-show.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/notmuch-show.c b/notmuch-show.c index d14dac9..91f566c 100644 --- a/notmuch-show.c +++ b/notmuch-show.c @@ -641,7 +641,7 @@ format_part_sigstatus_json (const GMimeSignatureValidity* validity) printf (", \"keyid\": %s", json_quote_str (ctx_quote, signer->keyid)); } if (signer->errors != GMIME_SIGNER_ERROR_NONE) { - printf (", \"errors\": %x", signer->errors); + printf (", \"errors\": %d", signer->errors); } printf ("}"); -- 1.7.8.4