changeset 12427:c5c0f714d8bc

[gaim-migrate @ 14734] size_t is unsigned, so I'm removing a check that can't ever matter. committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Fri, 09 Dec 2005 03:37:24 +0000
parents 98be11e744a8
children 9a0a6e74aafd
files src/protocols/oscar/rxqueue.c src/protocols/oscar/txqueue.c
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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 */