1 Return-Path: <bremner@tesseract.cs.unb.ca>
\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 arlo.cworth.org (Postfix) with ESMTP id 64A7C6DE119C
\r
6 for <notmuch@notmuchmail.org>; Sun, 7 Jun 2015 08:04:45 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at cworth.org
\r
11 X-Spam-Status: No, score=0.222 tagged_above=-999 required=5 tests=[AWL=0.212,
\r
12 T_HEADER_FROM_DIFFERENT_DOMAINS=0.01] autolearn=disabled
\r
13 Received: from arlo.cworth.org ([127.0.0.1])
\r
14 by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)
\r
15 with ESMTP id UKYKFlaT7zLa for <notmuch@notmuchmail.org>;
\r
16 Sun, 7 Jun 2015 08:04:43 -0700 (PDT)
\r
17 Received: from mx.xen14.node3324.gplhost.com (gitolite.debian.net
\r
19 by arlo.cworth.org (Postfix) with ESMTPS id 960BB6DE1579
\r
20 for <notmuch@notmuchmail.org>; Sun, 7 Jun 2015 08:04:43 -0700 (PDT)
\r
21 Received: from remotemail by mx.xen14.node3324.gplhost.com with local (Exim
\r
22 4.80) (envelope-from <bremner@tesseract.cs.unb.ca>)
\r
23 id 1Z1c7F-0004p9-QE; Sun, 07 Jun 2015 15:04:01 +0000
\r
24 Received: (nullmailer pid 7862 invoked by uid 1000); Sun, 07 Jun 2015
\r
26 From: David Bremner <david@tethera.net>
\r
27 To: notmuch@notmuchmail.org
\r
28 Subject: [PATCH 07/10] lib: constify argument to
\r
29 notmuch_database_status_string
\r
30 Date: Sun, 7 Jun 2015 17:02:00 +0200
\r
31 Message-Id: <1433689323-7520-8-git-send-email-david@tethera.net>
\r
32 X-Mailer: git-send-email 2.1.4
\r
33 In-Reply-To: <1433689323-7520-1-git-send-email-david@tethera.net>
\r
34 References: <1433689323-7520-1-git-send-email-david@tethera.net>
\r
35 X-BeenThere: notmuch@notmuchmail.org
\r
36 X-Mailman-Version: 2.1.18
\r
38 List-Id: "Use and development of the notmuch mail system."
\r
39 <notmuch.notmuchmail.org>
\r
40 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
41 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
42 List-Archive: <http://notmuchmail.org/pipermail/notmuch/>
\r
43 List-Post: <mailto:notmuch@notmuchmail.org>
\r
44 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
45 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
46 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
47 X-List-Received-Date: Sun, 07 Jun 2015 15:04:45 -0000
\r
49 We don't modify the database struct, so no harm in committing to that.
\r
51 lib/database.cc | 2 +-
\r
52 lib/notmuch.h | 2 +-
\r
53 2 files changed, 2 insertions(+), 2 deletions(-)
\r
55 diff --git a/lib/database.cc b/lib/database.cc
\r
56 index 15619c3..3ef8eaa 100644
\r
57 --- a/lib/database.cc
\r
58 +++ b/lib/database.cc
\r
59 @@ -2578,7 +2578,7 @@ notmuch_database_get_all_tags (notmuch_database_t *db)
\r
63 -notmuch_database_status_string (notmuch_database_t *notmuch)
\r
64 +notmuch_database_status_string (const notmuch_database_t *notmuch)
\r
66 return notmuch->status_string;
\r
68 diff --git a/lib/notmuch.h b/lib/notmuch.h
\r
69 index 46115c8..56d5ac4 100644
\r
72 @@ -308,7 +308,7 @@ notmuch_database_open_verbose (const char *path,
\r
76 -notmuch_database_status_string (notmuch_database_t *notmuch);
\r
77 +notmuch_database_status_string (const notmuch_database_t *notmuch);
\r
80 * Commit changes and close the given notmuch database.
\r