diff options
author | Lukas Fleischer <calcurse@cryptocrack.de> | 2012-04-05 21:36:54 +0200 |
---|---|---|
committer | Lukas Fleischer <calcurse@cryptocrack.de> | 2012-04-05 22:18:46 +0200 |
commit | 80f7e8ead55ee85a364c98db64c21d70a34d1dc1 (patch) | |
tree | d8c6d909ada1c0c4c85533a0d1687d0ccdffb17e /src/notify.c | |
parent | 516a793375424ea2bbdc891bf0c917a8f7b388a1 (diff) | |
download | 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/notify.c')
-rw-r--r-- | src/notify.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/notify.c b/src/notify.c index 5ec461e..70b5419 100644 --- a/src/notify.c +++ b/src/notify.c @@ -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 (); |