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>
This commit is contained in:
Lukas Fleischer
2012-04-05 21:36:54 +02:00
parent 516a793375
commit 80f7e8ead5
12 changed files with 89 additions and 89 deletions

View File

@@ -714,17 +714,17 @@ notify_config_bar (void)
{
struct scrollwin cwin;
char *buf;
char *number_str =
const char *number_str =
_("Enter an option number to change its value");
char *keys =
const char *keys =
_("(Press '^P' or '^N' to move up or down, 'Q' to quit)");
char *date_str =
const char *date_str =
_("Enter the date format (see 'man 3 strftime' for possible formats) ");
char *time_str =
const char *time_str =
_("Enter the time format (see 'man 3 strftime' for possible formats) ");
char *count_str =
const char *count_str =
_("Enter the number of seconds (0 not to be warned before an appointment)");
char *cmd_str = _("Enter the notification command ");
const char *cmd_str = _("Enter the notification command ");
int ch;
clear ();