[uim-commit] r359 - trunk/uim

yamaken@freedesktop.org yamaken@freedesktop.org
Wed Jan 26 09:21:44 PST 2005


Author: yamaken
Date: 2005-01-26 09:21:41 -0800 (Wed, 26 Jan 2005)
New Revision: 359

Modified:
   trunk/uim/prime.c
   trunk/uim/skk-dic.c
Log:
* uim/prime.c
  - (prime_init_ud): Fix C++ style comment with C style one

* uim/skk-dic.c
  - (sanitize_word, skk_lib_get_annotation): Fix constness handlings


Modified: trunk/uim/prime.c
===================================================================
--- trunk/uim/prime.c	2005-01-26 17:14:00 UTC (rev 358)
+++ trunk/uim/prime.c	2005-01-26 17:21:41 UTC (rev 359)
@@ -89,7 +89,7 @@
 
   if(connect(fd, (struct sockaddr *)&server,sizeof(server)) == -1){
     close(fd);
-    //fprintf(stderr, "connect failed\n");
+    /* fprintf(stderr, "connect failed\n"); */
     return -1;
   }
   

Modified: trunk/uim/skk-dic.c
===================================================================
--- trunk/uim/skk-dic.c	2005-01-26 17:14:00 UTC (rev 358)
+++ trunk/uim/skk-dic.c	2005-01-26 17:21:41 UTC (rev 359)
@@ -1536,7 +1536,7 @@
 static char *
 sanitize_word(const char *arg)
 {
-  char *tmp;
+  const char *tmp;
   if (!arg || !strlen(arg)) {
     return NULL;
   }
@@ -1998,8 +1998,8 @@
 static uim_lisp
 skk_lib_get_annotation(uim_lisp str_)
 {
-  char *str = uim_scm_refer_c_str(str_);
-  char *sep = strrchr(str, ';');
+  const char *str = uim_scm_refer_c_str(str_);
+  const char *sep = strrchr(str, ';');
   uim_lisp res;
   if (sep) {
     sep++;



More information about the Uim-commit mailing list