From: Andre Noll Date: Mon, 19 Feb 2007 21:24:17 +0000 (+0100) Subject: fix typo in dccp_writer X-Git-Tag: v0.2.16~76^2~7 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=5a971472d49afd4a6b5e24df5cb5839beb299830;p=paraslash.git fix typo in dccp_writer Again, a serious typo that causes the dccp writer to not error out under certain circumstances. --- diff --git a/dccp_send.c b/dccp_send.c index c335e768..e4b50879 100644 --- a/dccp_send.c +++ b/dccp_send.c @@ -131,7 +131,7 @@ again: size = PARA_MIN(1024, len - written); ret = write(fd, buf + written, size); if (ret < 0) { - if (errno != EAGAIN || !retries++ > DCCP_WRITE_RETRIES) + if (errno != EAGAIN || retries++ > DCCP_WRITE_RETRIES) goto err_out; PARA_DEBUG_LOG("EAGAIN #%d@%zd/%zd\n", retries, written, len); goto again;