[uim-commit] r670 - trunk/uim

yamaken at freedesktop.org yamaken at freedesktop.org
Fri Feb 18 01:52:05 PST 2005


Author: yamaken
Date: 2005-02-18 01:51:04 -0800 (Fri, 18 Feb 2005)
New Revision: 670

Modified:
   trunk/uim/uim-func.c
Log:
* uim/uim-func.c
  - (uim_iconv_create): Replace C++ style '0' pointer with C style
    'NULL'


Modified: trunk/uim/uim-func.c
===================================================================
--- trunk/uim/uim-func.c	2005-02-18 08:12:27 UTC (rev 669)
+++ trunk/uim/uim-func.c	2005-02-18 09:51:04 UTC (rev 670)
@@ -351,10 +351,11 @@
   iconv_t ic;
 
   if (check_encoding_equivalence(tocode, fromcode))
-    return (void *)0;
+    return NULL;
 
   ic = uim_iconv_open(tocode, fromcode);
   if (ic == (iconv_t)-1) {
+    /* since iconv_t is not explicit pointer, use 0 instead of NULL */
     ic = (iconv_t)0;
   }
   return (void *)ic;



More information about the Uim-commit mailing list