don't compare unsigned w/ <= 0.
This commit is contained in:
@@ -70,7 +70,7 @@
|
||||
|
||||
#if defined(LIBC_SCCS) && !defined(lint)
|
||||
static const char sccsid[] = "@(#)res_send.c 8.1 (Berkeley) 6/4/93";
|
||||
static const char rcsid[] = "$Id: res_send.c,v 1.9.18.1 2004/04/12 07:13:50 marka Exp $";
|
||||
static const char rcsid[] = "$Id: res_send.c,v 1.9.18.2 2004/06/03 04:40:59 marka Exp $";
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
/*
|
||||
@@ -656,7 +656,7 @@ send_vc(res_state statp,
|
||||
len = INT16SZ;
|
||||
while ((n = read(statp->_vcsock, (char *)cp, (int)len)) > 0) {
|
||||
cp += n;
|
||||
if ((len -= n) <= 0)
|
||||
if ((len -= n) == 0)
|
||||
break;
|
||||
}
|
||||
if (n <= 0) {
|
||||
|
||||
Reference in New Issue
Block a user