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/utils.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/utils.c')
-rw-r--r-- | src/utils.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/utils.c b/src/utils.c index e58125e..763d49b 100644 --- a/src/utils.c +++ b/src/utils.c @@ -105,8 +105,8 @@ void fatalbox (const char *errmsg) { WINDOW *errwin; - char *label = _("/!\\ INTERNAL ERROR /!\\"); - char *reportmsg = _("Please report the following bug:"); + const char *label = _("/!\\ INTERNAL ERROR /!\\"); + const char *reportmsg = _("Please report the following bug:"); const int WINROW = 10; const int WINCOL = col - 2; const int MSGLEN = WINCOL - 2; @@ -188,7 +188,7 @@ WINDOW * popup (int pop_row, int pop_col, int pop_y, int pop_x, char *title, char *msg, int hint) { - char *any_key = _("Press any key to continue..."); + const char *any_key = _("Press any key to continue..."); char label[BUFSIZ]; WINDOW *popup_win; const int MSGXPOS = 5; |