]> git.notmuchmail.org Git - notmuch/blobdiff - lib/message.cc
build: visibility=default for library structs is no longer needed
[notmuch] / lib / message.cc
index f8215a49f7dc93b482fb1d309b5ce8c68d6ba2f3..b330dcce5ecf374b7f6009ffbbd327fa1d95eaec 100644 (file)
@@ -26,7 +26,7 @@
 
 #include <gmime/gmime.h>
 
-struct visible _notmuch_message {
+struct _notmuch_message {
     notmuch_database_t *notmuch;
     Xapian::docid doc_id;
     int frozen;
@@ -1843,7 +1843,7 @@ _notmuch_message_ensure_property_map (notmuch_message_t *message)
        const char *key;
        char *value;
 
-       value = index(node->string, '=');
+       value = strchr(node->string, '=');
        if (!value)
            INTERNAL_ERROR ("malformed property term");