aboutsummaryrefslogtreecommitdiffstats
path: root/src/todo.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/todo.c
parent516a793375424ea2bbdc891bf0c917a8f7b388a1 (diff)
downloadcalcurse-80f7e8ead55ee85a364c98db64c21d70a34d1dc1.tar.gz
calcurse-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/todo.c')
-rw-r--r--src/todo.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/todo.c b/src/todo.c
index cae8de1..d72b64c 100644
--- a/src/todo.c
+++ b/src/todo.c
@@ -134,8 +134,8 @@ void
todo_new_item (void)
{
int ch = 0;
- char *mesg = _("Enter the new ToDo item : ");
- char *mesg_id = _("Enter the ToDo priority [1 (highest) - 9 (lowest)] :");
+ const char *mesg = _("Enter the new ToDo item : ");
+ const char *mesg_id = _("Enter the ToDo priority [1 (highest) - 9 (lowest)] :");
char todo_input[BUFSIZ] = "";
status_mesg (mesg, "");
@@ -243,11 +243,11 @@ void
todo_delete (void)
{
char *choices = "[y/n] ";
- char *del_todo_str = _("Do you really want to delete this task ?");
- char *erase_warning =
+ const char *del_todo_str = _("Do you really want to delete this task ?");
+ const char *erase_warning =
_("This item has a note attached to it. "
"Delete (t)odo or just its (n)ote ?");
- char *erase_choice = _("[t/n] ");
+ const char *erase_choice = _("[t/n] ");
int answer, has_note;
if (conf.confirm_delete)
@@ -364,7 +364,7 @@ void
todo_edit_item (void)
{
struct todo *i;
- char *mesg = _("Enter the new ToDo description :");
+ const char *mesg = _("Enter the new ToDo description :");
status_mesg (mesg, "");
i = todo_get_item (hilt);