diff options
author | peter <peter@FreeBSD.org> | 1998-06-30 00:23:43 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1998-06-30 00:23:43 +0000 |
commit | 3ae95a4e34816ecdead146e5ad069399efd89dc8 (patch) | |
tree | f56628a16b083be62b05309c652b695cea04de3f /comms | |
parent | 754ec9d8a51328cade575a27f11a9447dd849168 (diff) | |
download | FreeBSD-ports-3ae95a4e34816ecdead146e5ad069399efd89dc8.zip FreeBSD-ports-3ae95a4e34816ecdead146e5ad069399efd89dc8.tar.gz |
Sigh. Putting the non-modifyable value first in the condition might
prevent programming (== vs. =) errors, but it confused the hell out of me
at least.
Diffstat (limited to 'comms')
-rw-r--r-- | comms/conserver/files/patch-af | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/comms/conserver/files/patch-af b/comms/conserver/files/patch-af index 9604436..665ad94 100644 --- a/comms/conserver/files/patch-af +++ b/comms/conserver/files/patch-af @@ -30,13 +30,6 @@ while (0 != iLen) { - if (-1 == (nr = write(fd, pcBuf, iLen))) { -+ if (0 <= (nr = write(fd, pcBuf, iLen))) { ++ if (0 >= (nr = write(fd, pcBuf, iLen))) { c2cooked(); fprintf(stderr, "%s: lost connection\n", progname); -@@ -950,5 +950,5 @@ - iRem = iMax; - i = 0; -- while (0 < (nr = read(s, pcBuf+i, iRem))) { -+ while (0 <= (nr = read(s, pcBuf+i, iRem))) { - i += nr; - iRem -= nr; |