]> git.notmuchmail.org Git - notmuch/commitdiff
lib/message: mark flag2tag as const
authorDavid Bremner <david@tethera.net>
Wed, 12 May 2021 01:58:55 +0000 (22:58 -0300)
committerDavid Bremner <david@tethera.net>
Fri, 14 May 2021 09:39:12 +0000 (06:39 -0300)
This table is intended to be immutable

lib/message.cc

index 42d56acb10e4ae80a3f36e92c2f6c644b03afd43..7af6ab82a721699ac7f09153724b9e8038484b2a 100644 (file)
@@ -68,7 +68,7 @@ struct maildir_flag_tag {
 };
 
 /* ASCII ordered table of Maildir flags and associated tags */
-static struct maildir_flag_tag flag2tag[] = {
+static const struct maildir_flag_tag flag2tag[] = {
     { 'D', "draft",   false },
     { 'F', "flagged", false },
     { 'P', "passed",  false },