[gaim-migrate @ 14734]

Fri, 09 Dec 2005 03:37:24 +0000

author
Richard Laager <rlaager@pidgin.im>
date
Fri, 09 Dec 2005 03:37:24 +0000
changeset 12427
f30e2b05622c
parent 12426
8788fc00121c
child 12428
11d8c2ee5325

[gaim-migrate @ 14734]
size_t is unsigned, so I'm removing a check that can't ever matter.

src/protocols/oscar/rxqueue.c file | annotate | diff | comparison | revisions
src/protocols/oscar/txqueue.c file | annotate | diff | comparison | revisions
--- a/src/protocols/oscar/rxqueue.c	Fri Dec 09 03:28:56 2005 +0000
+++ b/src/protocols/oscar/rxqueue.c	Fri Dec 09 03:37:24 2005 +0000
@@ -42,7 +42,7 @@
 {
 	int red = 0;
 
-	if (!bs || (fd < 0) || (count < 0))
+	if (!bs || (fd < 0))
 		return -1;
 
 	if (count > (bs->len - bs->offset))
--- a/src/protocols/oscar/txqueue.c	Fri Dec 09 03:28:56 2005 +0000
+++ b/src/protocols/oscar/txqueue.c	Fri Dec 09 03:37:24 2005 +0000
@@ -217,7 +217,7 @@
 {
 	int wrote = 0;
 
-	if (!bs || !conn || (count < 0))
+	if (!bs || !conn)
 		return -EINVAL;
 
 	/* Make sure we don't send past the end of the bs */

mercurial