notmuch-config: use strchr(), not index() (Solaris support)
authorBlake Jones <blakej@foo.net>
Wed, 14 Nov 2012 02:10:03 +0000 (18:10 -0800)
committerDavid Bremner <bremner@debian.org>
Sat, 24 Aug 2013 09:37:51 +0000 (11:37 +0200)
commitd416294ae87ee08a723616abe7bf0fa78cc35dbf
tree657858339205ff981ba907f861bbcf1e4fbc6b49
parente3c2be3e255f2845f6c6b45da96064e2bba681da
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.)
notmuch-config.c