summaryrefslogtreecommitdiff
path: root/src/args.c
diff options
context:
space:
mode:
authorLukas Fleischer <calcurse@cryptocrack.de>2012-04-05 21:36:54 +0200
committerLukas Fleischer <calcurse@cryptocrack.de>2012-04-05 22:18:46 +0200
commit80f7e8ead55ee85a364c98db64c21d70a34d1dc1 (patch)
treed8c6d909ada1c0c4c85533a0d1687d0ccdffb17e /src/args.c
parent516a793375424ea2bbdc891bf0c917a8f7b388a1 (diff)
downloadcalcurse-80f7e8ead55ee85a364c98db64c21d70a34d1dc1.zip
Mark localized string literals constant
Translated strings returned by gettext() are statically allocated and shouldn't be modified. Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
Diffstat (limited to 'src/args.c')
-rw-r--r--src/args.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/args.c b/src/args.c
index ed56d1a..ad27235 100644
--- a/src/args.c
+++ b/src/args.c
@@ -205,8 +205,8 @@ todo_arg (int priority, const char *format, regex_t *regex)
llist_item_t *i;
int title = 1;
char *titlestr;
- char *all_todos_title = _("to do:\n");
- char *completed_title = _("completed tasks:\n");
+ const char *all_todos_title = _("to do:\n");
+ const char *completed_title = _("completed tasks:\n");
titlestr = priority == 0 ? completed_title : all_todos_title;