diff options
author | james <> | 2012-06-22 10:22:25 +0000 |
---|---|---|
committer | james <> | 2012-06-22 10:22:25 +0000 |
commit | c945112e89222e697c3733c69eab685f606a5be5 (patch) | |
tree | 20d0d125ed4d76259f87740d5cd9344bcade24d5 /src/util.c | |
parent | 9a219228a74b32f3b3202609a155d8f22ba47da8 (diff) | |
download | sympathy-c945112e89222e697c3733c69eab685f606a5be5.tar.gz sympathy-c945112e89222e697c3733c69eab685f606a5be5.tar.bz2 sympathy-c945112e89222e697c3733c69eab685f606a5be5.zip |
*** empty log message ***
Diffstat (limited to 'src/util.c')
-rw-r--r-- | src/util.c | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -10,6 +10,9 @@ static char rcsid[] = "$Id$"; /* * $Log$ + * Revision 1.12 2012/06/22 10:22:25 james + * *** empty log message *** + * * Revision 1.11 2008/03/07 14:13:40 james * *** empty log message *** * @@ -86,7 +89,7 @@ wrap_write (int fd, void *buf, int len) void set_nonblocking (int fd) { - long arg; + long arg = 0; arg = fcntl (fd, F_GETFL, arg); arg |= O_NONBLOCK; fcntl (fd, F_SETFL, arg); @@ -95,7 +98,7 @@ set_nonblocking (int fd) void set_blocking (int fd) { - long arg; + long arg = 0; arg = fcntl (fd, F_GETFL, arg); arg &= ~O_NONBLOCK; fcntl (fd, F_SETFL, arg); @@ -165,7 +168,7 @@ fput_cp (FILE * f, uint32_t ch) { char buf[4]; int i; - i = utf8_encode (buf, ch); + i = utf8_encode ((uint8_t *) buf, ch); if (!i) return 0; |