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 84898431FB6
\r
6 for <notmuch@notmuchmail.org>; Sat, 3 Nov 2012 20:24:17 -0700 (PDT)
\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 feFoUzfVAB27 for <notmuch@notmuchmail.org>;
\r
16 Sat, 3 Nov 2012 20:24:17 -0700 (PDT)
\r
17 X-Greylist: delayed 489 seconds by postgrey-1.32 at olra;
\r
18 Sat, 03 Nov 2012 20:24:16 PDT
\r
19 Received: from foo.net (70-36-235-136.dsl.static.sonic.net [70.36.235.136])
\r
20 (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
\r
21 (No client certificate requested)
\r
22 by olra.theworths.org (Postfix) with ESMTPS id F36CD431FAE
\r
23 for <notmuch@notmuchmail.org>; Sat, 3 Nov 2012 20:24:16 -0700 (PDT)
\r
24 Received: from foo.net (localhost [127.0.0.1])
\r
25 by foo.net (8.14.5+Sun/8.14.5) with ESMTP id qA43GHpQ025708;
\r
26 Sat, 3 Nov 2012 20:16:17 -0700 (PDT)
\r
27 Received: (from blakej@localhost)
\r
28 by foo.net (8.14.5+Sun/8.14.5/Submit) id qA43GHDw025707;
\r
29 Sat, 3 Nov 2012 20:16:17 -0700 (PDT)
\r
30 From: Blake Jones <blakej@foo.net>
\r
31 To: notmuch@notmuchmail.org
\r
32 Subject: [PATCH 09/10] debugger.c: correct return type from getppid() (Solaris
\r
34 Date: Sat, 3 Nov 2012 20:16:01 -0700
\r
35 Message-Id: <1351998962-25135-10-git-send-email-blakej@foo.net>
\r
36 X-Mailer: git-send-email 1.7.3.2
\r
37 In-Reply-To: <1351998962-25135-1-git-send-email-blakej@foo.net>
\r
38 References: <1351998962-25135-1-git-send-email-blakej@foo.net>
\r
39 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0.2
\r
40 (foo.net [127.0.0.1]); Sat, 03 Nov 2012 20:16:17 -0700 (PDT)
\r
41 X-Mailman-Approved-At: Sun, 04 Nov 2012 01:30:19 -0800
\r
42 Cc: Blake Jones <blakej@foo.net>
\r
43 X-BeenThere: notmuch@notmuchmail.org
\r
44 X-Mailman-Version: 2.1.13
\r
46 List-Id: "Use and development of the notmuch mail system."
\r
47 <notmuch.notmuchmail.org>
\r
48 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
49 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
50 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
51 List-Post: <mailto:notmuch@notmuchmail.org>
\r
52 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
53 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
54 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
55 X-List-Received-Date: Sun, 04 Nov 2012 03:24:17 -0000
\r
57 Cast the return value of getppid() to "int" from "pid_t" in debugger.c,
\r
58 since it is being passed to sprintf("%d"), which wants an "int"
\r
59 argument. On Solaris, "pid_t" is a "long" for 32-bit programs.
\r
62 1 file changed, 1 insertion(+), 1 deletion(-)
\r
64 diff --git a/debugger.c b/debugger.c
\r
65 index e8b9378..8ff13d6 100644
\r
68 @@ -36,7 +36,7 @@ debugger_is_active (void)
\r
69 if (RUNNING_ON_VALGRIND)
\r
72 - sprintf (buf, "/proc/%d/exe", getppid ());
\r
73 + sprintf (buf, "/proc/%d/exe", (int) getppid ());
\r
74 if (readlink (buf, buf, sizeof (buf)) != -1 &&
\r
75 strncmp (basename (buf), "gdb", 3) == 0)
\r