aboutsummaryrefslogtreecommitdiff
path: root/comms/conserver
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>1998-06-30 00:23:43 +0000
committerPeter Wemm <peter@FreeBSD.org>1998-06-30 00:23:43 +0000
commit8e04a1f96ec8c6ca5c03ff11a251439464ea285f (patch)
treeff89e2425897166c4c6041937ccac8e23333a594 /comms/conserver
parent920f52ef7111f554dbbeeb13eefc1477432d4bc0 (diff)
downloadports-8e04a1f96ec8c6ca5c03ff11a251439464ea285f.tar.gz
ports-8e04a1f96ec8c6ca5c03ff11a251439464ea285f.zip
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.
Notes
Notes: svn path=/head/; revision=11617
Diffstat (limited to 'comms/conserver')
-rw-r--r--comms/conserver/files/patch-af9
1 files changed, 1 insertions, 8 deletions
diff --git a/comms/conserver/files/patch-af b/comms/conserver/files/patch-af
index 96044368ca10..665ad9443e66 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;