aboutsummaryrefslogtreecommitdiff
path: root/notmuch-new.c
diff options
context:
space:
mode:
authorDavid Bremner <david@tethera.net>2021-05-12 20:40:23 -0300
committerDavid Bremner <david@tethera.net>2021-05-14 06:42:55 -0300
commit0c6569d97cda26cf6ce71da86d845d4276967016 (patch)
tree653e43d35a9cb8ada28030c6acce1cd8baab2a7c /notmuch-new.c
parent19983fe554b2b353f10cb818b80e7ef815623b66 (diff)
CLI: make static message strings const
This is both a bit clearer and avoids the possibility of modification.
Diffstat (limited to 'notmuch-new.c')
-rw-r--r--notmuch-new.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/notmuch-new.c b/notmuch-new.c
index 993359d6..1162e25a 100644
--- a/notmuch-new.c
+++ b/notmuch-new.c
@@ -81,7 +81,7 @@ static volatile sig_atomic_t interrupted;
static void
handle_sigint (unused (int sig))
{
- static char msg[] = "Stopping... \n";
+ static const char msg[] = "Stopping... \n";
/* This write is "opportunistic", so it's okay to ignore the
* result. It is not required for correctness, and if it does