1 Return-Path: <blakej@foo.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 752E4431FCB
\r
6 for <notmuch@notmuchmail.org>; Mon, 5 Nov 2012 11:02:30 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]
\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 dduqQnXnRGWF for <notmuch@notmuchmail.org>;
\r
16 Mon, 5 Nov 2012 11:02:29 -0800 (PST)
\r
17 Received: from foo.net (70-36-235-136.dsl.static.sonic.net [70.36.235.136])
\r
18 (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
\r
19 (No client certificate requested)
\r
20 by olra.theworths.org (Postfix) with ESMTPS id 16517431FC3
\r
21 for <notmuch@notmuchmail.org>; Mon, 5 Nov 2012 11:02:26 -0800 (PST)
\r
22 Received: from foo.net (localhost [127.0.0.1])
\r
23 by foo.net (8.14.5+Sun/8.14.5) with ESMTP id qA5J2OMM019142;
\r
24 Mon, 5 Nov 2012 11:02:24 -0800 (PST)
\r
25 Received: (from blakej@localhost)
\r
26 by foo.net (8.14.5+Sun/8.14.5/Submit) id qA5J2O4q019141;
\r
27 Mon, 5 Nov 2012 11:02:24 -0800 (PST)
\r
28 From: Blake Jones <blakej@foo.net>
\r
29 To: notmuch@notmuchmail.org
\r
30 Subject: [PATCH v2 09/10] debugger.c: correct return type from getppid()
\r
32 Date: Mon, 5 Nov 2012 11:02:02 -0800
\r
33 Message-Id: <1352142123-18286-10-git-send-email-blakej@foo.net>
\r
34 X-Mailer: git-send-email 1.7.3.2
\r
35 In-Reply-To: <1352142123-18286-1-git-send-email-blakej@foo.net>
\r
36 References: <1352142123-18286-1-git-send-email-blakej@foo.net>
\r
37 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0.2
\r
38 (foo.net [127.0.0.1]); Mon, 05 Nov 2012 11:02:24 -0800 (PST)
\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: Mon, 05 Nov 2012 19:02:30 -0000
\r
53 Cast the return value of getppid() to "int" from "pid_t" in debugger.c,
\r
54 since it is being passed to sprintf("%d"), which wants an "int"
\r
55 argument. On Solaris, "pid_t" is a "long" for 32-bit programs.
\r
58 1 files changed, 1 insertions(+), 1 deletions(-)
\r
60 diff --git a/debugger.c b/debugger.c
\r
61 index e8b9378..8ff13d6 100644
\r
64 @@ -36,7 +36,7 @@ debugger_is_active (void)
\r
65 if (RUNNING_ON_VALGRIND)
\r
68 - sprintf (buf, "/proc/%d/exe", getppid ());
\r
69 + sprintf (buf, "/proc/%d/exe", (int) getppid ());
\r
70 if (readlink (buf, buf, sizeof (buf)) != -1 &&
\r
71 strncmp (basename (buf), "gdb", 3) == 0)
\r