diff options
author | Peter Wemm <peter@FreeBSD.org> | 1998-06-30 00:23:43 +0000 |
---|---|---|
committer | Peter Wemm <peter@FreeBSD.org> | 1998-06-30 00:23:43 +0000 |
commit | 8e04a1f96ec8c6ca5c03ff11a251439464ea285f (patch) | |
tree | ff89e2425897166c4c6041937ccac8e23333a594 /comms | |
parent | Install Japanese manpages under "ja", not "ja_JP.EUC". (diff) |
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 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; |