mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-21 18:38:08 +01:00
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.)
This commit is contained in:
parent
e3c2be3e25
commit
d416294ae8
1 changed files with 1 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue