aboutsummaryrefslogtreecommitdiffstats
path: root/src/util.c
diff options
context:
space:
mode:
authorjames <>2008-02-27 01:31:14 +0000
committerjames <>2008-02-27 01:31:14 +0000
commit4add819b42c292ee2a6fc4aeda782a447b1bcf27 (patch)
tree17b7f7ce7e45c6c6262db7cfeb548a4d6f1006e1 /src/util.c
parent74feb0db53bf6ed2d53ca59e3aed001f1160e62a (diff)
downloadsympathy-4add819b42c292ee2a6fc4aeda782a447b1bcf27.tar.gz
sympathy-4add819b42c292ee2a6fc4aeda782a447b1bcf27.tar.bz2
sympathy-4add819b42c292ee2a6fc4aeda782a447b1bcf27.zip
*** empty log message ***
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c17
1 files changed, 11 insertions, 6 deletions
diff --git a/src/util.c b/src/util.c
index ea46e77..91cb58b 100644
--- a/src/util.c
+++ b/src/util.c
@@ -10,6 +10,9 @@ static char rcsid[] = "$Id$";
/*
* $Log$
+ * Revision 1.7 2008/02/27 01:31:14 james
+ * *** empty log message ***
+ *
* Revision 1.6 2008/02/27 00:54:16 james
* *** empty log message ***
*
@@ -143,13 +146,15 @@ client_termios (struct termios *termios)
cfsetospeed (termios, B9600);
}
-int fput_cp(FILE *f,uint32_t ch)
+int
+fput_cp (FILE * f, uint32_t ch)
{
-char buf[4];
-int i;
-i=utf8_encode(buf,ch);
+ char buf[4];
+ int i;
+ i = utf8_encode (buf, ch);
-if (!i) return 0;
+ if (!i)
+ return 0;
-return fwrite(buf,i,1,f);
+ return fwrite (buf, i, 1, f);
}