]> git.notmuchmail.org Git - notmuch/blobdiff - lib/message.cc
lib: replace STRNCMP_LITERAL in __message_remove_indexed_terms
[notmuch] / lib / message.cc
index 5c9b58b22986cd9fff286e3493dffedc2ade7450..0fa0eb3aef531237a01a2a19d73847a38fe49fff 100644 (file)
@@ -751,9 +751,9 @@ _notmuch_message_remove_indexed_terms (notmuch_message_t *message)
 
        const char *tag = notmuch_tags_get (tags);
 
-       if (STRNCMP_LITERAL (tag, "encrypted") != 0 &&
-           STRNCMP_LITERAL (tag, "signed") != 0 &&
-           STRNCMP_LITERAL (tag, "attachment") != 0) {
+       if (strcmp (tag, "encrypted") != 0 &&
+           strcmp (tag, "signed") != 0 &&
+           strcmp (tag, "attachment") != 0) {
            std::string term = tag_prefix + tag;
            message->doc.add_term (term);
        }