[Freeciv-Dev] (PR#8813) Add const to skip_intl_qualifier_prefix
[Top] [All Lists]
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
| 
To:  | 
undisclosed-recipients: ; | 
 
| 
Subject:  | 
[Freeciv-Dev] (PR#8813) Add const to skip_intl_qualifier_prefix | 
 
| 
From:  | 
"Raimar Falke" <i-freeciv-lists@xxxxxxxxxxxxx> | 
 
| 
Date:  | 
Sat, 22 May 2004 05:33:12 -0700 | 
 
| 
Reply-to:  | 
rt@xxxxxxxxxxx | 
 
 
 
<URL: http://rt.freeciv.org/Ticket/Display.html?id=8813 >
This was inspired by PR#8664.
        Raimar
-- 
 email: rf13@xxxxxxxxxxxxxxxxx
 "> WHY?! Isn't it better to put $(shell cat cscope.files) on the list of
  I only have a yellow belt in makefile kungfu.  These fancy gnu make things
  are relatively new to some of us..."
    -- Mark Frazer to Vassilii Khachaturov in linux-kernel
Index: utility/fcintl.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/utility/fcintl.c,v
retrieving revision 1.4
diff -u -u -r1.4 fcintl.c
--- utility/fcintl.c    14 Nov 2002 09:15:01 -0000      1.4
+++ utility/fcintl.c    22 May 2004 12:30:24 -0000
@@ -36,15 +36,15 @@
 should, if NLS is enabled, have called gettext() to get the argument
 to pass to this function.
 ***********************************************************************/
-char *skip_intl_qualifier_prefix(const char *str)
+const char *skip_intl_qualifier_prefix(const char *str)
 {
-  char *ptr;
+  const char *ptr;
 
   if (*str != '?') {
-    return (char*)str;
+    return str;
   } else if ((ptr = strchr(str, ':'))) {
     return (ptr + 1);
   } else {
-    return (char*)str;         /* may be something wrong */
+    return str;                        /* may be something wrong */
   }
 }
Index: utility/fcintl.h
===================================================================
RCS file: /home/freeciv/CVS/freeciv/utility/fcintl.h,v
retrieving revision 1.9
diff -u -u -r1.9 fcintl.h
--- utility/fcintl.h    4 Apr 2003 15:47:49 -0000       1.9
+++ utility/fcintl.h    22 May 2004 12:30:24 -0000
@@ -42,6 +42,6 @@
 
 #endif
 
-char *skip_intl_qualifier_prefix(const char *str);
+const char *skip_intl_qualifier_prefix(const char *str);
 
 #endif  /* FC__FCINTL_H */
 
| [Prev in Thread] | 
Current Thread | 
[Next in Thread] |   
- [Freeciv-Dev] (PR#8813) Add const to skip_intl_qualifier_prefix,
Raimar Falke <=
  
 
 | 
 |