Module Name:    src
Committed By:   lukem
Date:           Wed Apr 15 00:35:04 UTC 2009

Modified Files:
        src/usr.sbin/btdevctl: sdp.c

Log Message:
Fix -Wsign-compare issues


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/usr.sbin/btdevctl/sdp.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.sbin/btdevctl/sdp.c
diff -u src/usr.sbin/btdevctl/sdp.c:1.5 src/usr.sbin/btdevctl/sdp.c:1.6
--- src/usr.sbin/btdevctl/sdp.c:1.5	Sun Apr 20 19:34:23 2008
+++ src/usr.sbin/btdevctl/sdp.c	Wed Apr 15 00:35:04 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: sdp.c,v 1.5 2008/04/20 19:34:23 plunky Exp $	*/
+/*	$NetBSD: sdp.c,v 1.6 2009/04/15 00:35:04 lukem Exp $	*/
 
 /*-
  * Copyright (c) 2006 Itronix Inc.
@@ -55,7 +55,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: sdp.c,v 1.5 2008/04/20 19:34:23 plunky Exp $");
+__RCSID("$NetBSD: sdp.c,v 1.6 2009/04/15 00:35:04 lukem Exp $");
 
 #include <sys/types.h>
 
@@ -154,7 +154,8 @@
 {
 	prop_dictionary_t dict;
 	void *ss;
-	int rv, i;
+	int rv;
+	size_t i;
 
 	dict = prop_dictionary_create();
 	if (dict == NULL)
@@ -212,7 +213,7 @@
 		normally_connectable, hid_length;
 	uint8_t *hid_descriptor;
 	const char *mode;
-	int i;
+	size_t i;
 
 	control_psm = -1;
 	interrupt_psm = -1;
@@ -313,7 +314,7 @@
 {
 	prop_object_t obj;
 	uint32_t channel;
-	int i;
+	size_t i;
 
 	channel = -1;
 
@@ -328,7 +329,7 @@
 		}
 	}
 
-	if (channel == -1)
+	if (channel == (uint32_t)-1)
 		return ENOATTR;
 
 	obj = prop_string_create_cstring_nocopy("btsco");
@@ -354,7 +355,7 @@
 {
 	prop_object_t obj;
 	uint32_t channel;
-	int i;
+	size_t i;
 
 	channel = -1;
 
@@ -369,7 +370,7 @@
 		}
 	}
 
-	if (channel == -1)
+	if (channel == (uint32_t)-1)
 		return ENOATTR;
 
 	obj = prop_string_create_cstring_nocopy("btsco");

Reply via email to