From 80f7e8ead55ee85a364c98db64c21d70a34d1dc1 Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Thu, 5 Apr 2012 21:36:54 +0200 Subject: Mark localized string literals constant Translated strings returned by gettext() are statically allocated and shouldn't be modified. Signed-off-by: Lukas Fleischer --- src/notify.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/notify.c') 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 (); -- cgit v1.2.3-54-g00ecf