From: David Bremner Date: Wed, 12 May 2021 01:58:55 +0000 (-0300) Subject: lib/message: mark flag2tag as const X-Git-Tag: archive/debian/0.33_rc0-1~106 X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=commitdiff_plain;h=b1b679858868d1a004b67a1a6eccb6c9d3f755e9 lib/message: mark flag2tag as const This table is intended to be immutable --- diff --git a/lib/message.cc b/lib/message.cc index 42d56acb..7af6ab82 100644 --- a/lib/message.cc +++ b/lib/message.cc @@ -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 },