[aisleriot] main: Remove a compiler warning



commit 90c5fca982096ea5c967255c4058ee197c0b77a8
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 b730d69..6dc2b5c 100644
--- a/src/game.c
+++ b/src/game.c
@@ -683,7 +683,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))
@@ -696,7 +697,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]