From 9c0b5859e6cc4b7a0e925fde8665990281b265d3 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Thu, 29 Jan 2009 17:58:28 +0100 Subject: Fix mostly every warning caused by -Wsign-compare --- compat/bnep.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'compat/bnep.c') diff --git a/compat/bnep.c b/compat/bnep.c index f8d2b291..e9742c7a 100644 --- a/compat/bnep.c +++ b/compat/bnep.c @@ -128,7 +128,7 @@ int bnep_show_connections(void) { struct bnep_connlist_req req; struct bnep_conninfo ci[48]; - int i; + unsigned int i; req.cnum = 48; req.ci = ci; @@ -137,7 +137,7 @@ int bnep_show_connections(void) return -1; } - for (i=0; i < req.cnum; i++) { + for (i = 0; i < req.cnum; i++) { printf("%s %s %s\n", ci[i].device, batostr((bdaddr_t *) ci[i].dst), bnep_svc2str(ci[i].role)); @@ -162,7 +162,7 @@ int bnep_kill_all_connections(void) { struct bnep_connlist_req req; struct bnep_conninfo ci[48]; - int i; + unsigned int i; req.cnum = 48; req.ci = ci; @@ -171,7 +171,7 @@ int bnep_kill_all_connections(void) return -1; } - for (i=0; i < req.cnum; i++) { + for (i = 0; i < req.cnum; i++) { struct bnep_conndel_req req; memcpy(req.dst, ci[i].dst, ETH_ALEN); req.flags = 0; @@ -227,7 +227,7 @@ int bnep_accept_connection(int sk, uint16_t role, char *dev) errno = EPROTO; - if (r < sizeof(*req)) + if (r < (int) sizeof(*req)) return -1; req = (void *) pkt; @@ -292,7 +292,7 @@ receive: errno = EPROTO; - if (r < sizeof(*rsp)) + if (r < (int) sizeof(*rsp)) return -1; rsp = (void *) pkt; -- cgit