Re: [PATCH] Fix typo in Message.maildir_flags_to_tags
[notmuch-archives.git] / 81 / 67613f5363035e4aa37ce1c3cb4ec71c682301
1 Return-Path: <tomi.ollila@iki.fi>\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 D060D431FAF\r
6         for <notmuch@notmuchmail.org>; Sun,  4 Nov 2012 13:47:16 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: 0\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
12         autolearn=disabled\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 f0hTJjNmfOxH for <notmuch@notmuchmail.org>;\r
16         Sun,  4 Nov 2012 13:47:16 -0800 (PST)\r
17 Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34])\r
18         by olra.theworths.org (Postfix) with ESMTP id DA548431FAE\r
19         for <notmuch@notmuchmail.org>; Sun,  4 Nov 2012 13:47:15 -0800 (PST)\r
20 Received: from guru.guru-group.fi (localhost [IPv6:::1])\r
21         by guru.guru-group.fi (Postfix) with ESMTP id 50290100094;\r
22         Sun,  4 Nov 2012 23:47:15 +0200 (EET)\r
23 From: Tomi Ollila <tomi.ollila@iki.fi>\r
24 To: Jani Nikula <jani@nikula.org>, Blake Jones <blakej@foo.net>,\r
25         notmuch@notmuchmail.org\r
26 Subject: Re: [PATCH 08/10] notmuch-config: header for index() prototype\r
27         (Solaris support)\r
28 In-Reply-To: <87fw4pf4ql.fsf@nikula.org>\r
29 References: <1351998962-25135-1-git-send-email-blakej@foo.net>\r
30         <1351998962-25135-9-git-send-email-blakej@foo.net>\r
31         <87fw4pf4ql.fsf@nikula.org>\r
32 User-Agent: Notmuch/0.14+81~gb8371cd (http://notmuchmail.org) Emacs/24.2.1\r
33         (x86_64-unknown-linux-gnu)\r
34 X-Face: HhBM'cA~<r"^Xv\KRN0P{vn'Y"Kd;zg_y3S[4)KSN~s?O\"QPoL\r
35         $[Xv_BD:i/F$WiEWax}R(MPS`^UaptOGD`*/=@\1lKoVa9tnrg0TW?"r7aRtgk[F\r
36         !)g;OY^,BjTbr)Np:%c_o'jj,Z\r
37 Date: Sun, 04 Nov 2012 23:47:15 +0200\r
38 Message-ID: <m2pq3tniqk.fsf@guru.guru-group.fi>\r
39 MIME-Version: 1.0\r
40 Content-Type: text/plain\r
41 X-BeenThere: notmuch@notmuchmail.org\r
42 X-Mailman-Version: 2.1.13\r
43 Precedence: list\r
44 List-Id: "Use and development of the notmuch mail system."\r
45         <notmuch.notmuchmail.org>\r
46 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
47         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
48 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
49 List-Post: <mailto:notmuch@notmuchmail.org>\r
50 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
51 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
52         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
53 X-List-Received-Date: Sun, 04 Nov 2012 21:47:16 -0000\r
54 \r
55 On Sun, Nov 04 2012, Jani Nikula wrote:\r
56 \r
57 > On Sun, 04 Nov 2012, Blake Jones <blakej@foo.net> wrote:\r
58 >> Linux, FreeBSD, and Solaris all expect to find the prototype for\r
59 >> "index()" in <strings.h>.  On some operating systems, including\r
60 >> <string.h> is sufficient to get the prototype, but that's not the case\r
61 >> on Solaris.  This patch just modifies notmuch-config.c to include\r
62 >> <strings.h> to get the prototype.\r
63 >\r
64 > We should probably just nuke index() and use strchr() instead.\r
65 \r
66 indeed!\r
67 \r
68 >\r
69 > Jani.\r
70 >\r
71 \r
72 Tomi\r
73 \r
74 \r
75 >\r
76 > diff --git a/notmuch-config.c b/notmuch-config.c\r
77 > index 3e37a2d..47eb743 100644\r
78 > --- a/notmuch-config.c\r
79 > +++ b/notmuch-config.c\r
80 > @@ -688,7 +688,7 @@ _item_split (char *item, char **group, char **key)\r
81 >  \r
82 >      *group = item;\r
83 >  \r
84 > -    period = index (item, '.');\r
85 > +    period = strchr (item, '.');\r
86 >      if (period == NULL || *(period+1) == '\0') {\r
87 >       fprintf (stderr,\r
88 >                "Invalid configuration name: %s\n"\r
89 > _______________________________________________\r
90 > notmuch mailing list\r
91 > notmuch@notmuchmail.org\r
92 > http://notmuchmail.org/mailman/listinfo/notmuch\r