aboutsummaryrefslogtreecommitdiffhomepage
path: root/notmuch-config.c
diff options
context:
space:
mode:
authorGravatar Blake Jones <blakej@foo.net>2012-11-13 18:10:03 -0800
committerGravatar David Bremner <bremner@debian.org>2013-08-24 11:37:51 +0200
commitd416294ae87ee08a723616abe7bf0fa78cc35dbf (patch)
tree657858339205ff981ba907f861bbcf1e4fbc6b49 /notmuch-config.c
parente3c2be3e255f2845f6c6b45da96064e2bba681da (diff)
notmuch-config: use strchr(), not index() (Solaris support)
notmuch-config.c has the only use of the function named "index()" in the notmuch source. Several other places use the equivalent function "strchr()"; this patch just fixes notmuch-config.c to use strchr() instead. (Solaris needs to include <strings.h> to get the prototype for index(), and notmuch-config.c was failing to include that header, so it wasn't compiling as-is.)
Diffstat (limited to 'notmuch-config.c')
-rw-r--r--notmuch-config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/notmuch-config.c b/notmuch-config.c
index befe9b5b..6845e3c3 100644
--- a/notmuch-config.c
+++ b/notmuch-config.c
@@ -704,7 +704,7 @@ _item_split (char *item, char **group, char **key)
*group = item;
- period = index (item, '.');
+ period = strchr (item, '.');
if (period == NULL || *(period+1) == '\0') {
fprintf (stderr,
"Invalid configuration name: %s\n"