[uim-commit] r654 - trunk/fep

yamamoto at freedesktop.org yamamoto at freedesktop.org
Mon Feb 14 23:28:22 PST 2005


Author: yamamoto
Date: 2005-02-14 23:28:18 -0800 (Mon, 14 Feb 2005)
New Revision: 654

Modified:
   trunk/fep/escseq.c
Log:
 * fep/escseq.c(my_putchar): fix a warning


Modified: trunk/fep/escseq.c
===================================================================
--- trunk/fep/escseq.c	2005-02-15 06:57:23 UTC (rev 653)
+++ trunk/fep/escseq.c	2005-02-15 07:28:18 UTC (rev 654)
@@ -146,7 +146,7 @@
 static void escseq2n2(const char *escseq, const char **first, const char **second);
 static const char *attr2escseq(const struct attribute_tag *attr);
 static void set_attr(const char *str, int len);
-static int my_putchar(char c);
+static int my_putchar(int c);
 #ifndef HAVE_CFMAKERAW
 static int cfmakeraw(struct termios *termios_p);
 #endif
@@ -1067,9 +1067,10 @@
   s_cursor.row = s_cursor.col = UNDEFINED;
 }
 
-static int my_putchar(char c)
+static int my_putchar(int c)
 {
-  write(g_win_out, &c, 1);
+  char ch = c;
+  write(g_win_out, &ch, 1);
   return c;
 }
 



More information about the Uim-commit mailing list