[aisleriot/gnome-3-2] main: Remove a compiler warning
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [aisleriot/gnome-3-2] main: Remove a compiler warning
- Date: Sun, 16 Oct 2011 16:51:52 +0000 (UTC)
commit dcf5a9a50cdbd9fcd37eb0037aff8bfb45447185
Author: Christian Persch <chpe gnome org>
Date: Wed Oct 5 20:25:41 2011 +0200
main: Remove a compiler warning
game.c: In Funktion Âscm_gettextÂ:
game.c:699: Warnung: Zuweisung streicht Qualifizierer von Zeiger-Zieltyp
src/game.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/game.c b/src/game.c
index bd90652..d2fa05b 100644
--- a/src/game.c
+++ b/src/game.c
@@ -666,7 +666,8 @@ cscmi_add_slot (SCM slot_data)
static SCM
scm_gettext (SCM message)
{
- char *input, *output;
+ char *input;
+ const char *output;
SCM translated = SCM_UNDEFINED;
if (!scm_is_string (message))
@@ -679,7 +680,7 @@ scm_gettext (SCM message)
if (!input)
goto out;
- output = _(input);
+ output = g_dgettext (NULL, input);
if (input != output) {
translated = scm_from_locale_string (output);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]