]> git.notmuchmail.org Git - notmuch/commit
Replace index(3) with strchr(3)
authorFredrik Fornwall <fredrik@fornwall.net>
Thu, 6 Apr 2017 23:06:20 +0000 (01:06 +0200)
committerDavid Bremner <david@tethera.net>
Thu, 20 Apr 2017 09:59:22 +0000 (06:59 -0300)
commite56511817284afc14352f47a13fcf85b2fabd628
tree39439169bed947a829e151209b52ec637cd44e41
parent0b76e4a6f45b051bfcaf9f058d3162b423007294
Replace index(3) with strchr(3)

The index(3) function has been deprecated in POSIX since 2001 and
removed in 2008, and most code in notmuch already calls strchr(3).

This fixes a compilation error on Android whose libc does not have
index(3).
lib/message-property.cc
lib/message.cc