diff options
author | Jorge Arellano Cid <jcid@dillo.org> | 2009-11-06 10:32:40 -0300 |
---|---|---|
committer | Jorge Arellano Cid <jcid@dillo.org> | 2009-11-06 10:32:40 -0300 |
commit | 7d6bb0839a0a5fc7c0d122b4e243a93f8e258279 (patch) | |
tree | 89207d8608f0d5df39d4e6bbecd239f08a99cadd /dpip/dpip.c | |
parent | 8f06733c8a70ad1ed61dc2dce59f776c0ab6a9cc (diff) |
Compiler happiness for old versions of gcc
Diffstat (limited to 'dpip/dpip.c')
-rw-r--r-- | dpip/dpip.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dpip/dpip.c b/dpip/dpip.c index cf92c557..bfc543fb 100644 --- a/dpip/dpip.c +++ b/dpip/dpip.c @@ -263,7 +263,7 @@ Dsh *a_Dpip_dsh_new(int fd_in, int fd_out, int flush_sz) */ static int Dpip_dsh_write(Dsh *dsh, int nb, const char *Data, int DataSize) { - int req_mode, old_flags, st, ret = -3, sent = 0; + int req_mode, old_flags = 0, st, ret = -3, sent = 0; req_mode = (nb) ? DPIP_NONBLOCK : 0; if ((dsh->mode & DPIP_NONBLOCK) != req_mode) { @@ -377,7 +377,7 @@ int a_Dpip_dsh_write_str(Dsh *dsh, int flush, const char *str) static void Dpip_dsh_read(Dsh *dsh, int blocking) { char buf[RBUF_SZ]; - int req_mode, old_flags, st, ret = -3, nb = !blocking; + int req_mode, old_flags = 0, st, ret = -3, nb = !blocking; dReturn_if (dsh->status == DPIP_ERROR || dsh->status == DPIP_EOF); |