diff options
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; |