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 --- serial/proxy.c | 3 ++- serial/storage.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'serial') diff --git a/serial/proxy.c b/serial/proxy.c index d2831083..76f2e1d2 100644 --- a/serial/proxy.c +++ b/serial/proxy.c @@ -1033,7 +1033,8 @@ static void parse_proxy(char *key, char *value, void *data) char uuid128[MAX_LEN_UUID_STR], tmp[3]; char *pvalue; proxy_type_t type; - int ch, opts, pos; + unsigned int pos; + int ch, opts; struct termios ti; uint8_t *pti; diff --git a/serial/storage.c b/serial/storage.c index 284e8084..a6564a72 100644 --- a/serial/storage.c +++ b/serial/storage.c @@ -103,7 +103,8 @@ int proxy_store(bdaddr_t *src, const char *uuid, const char *tty, const char *name, uint8_t ch, int opts, struct termios *ti) { char filename[PATH_MAX + 1], key[32], src_addr[18], *value; - int i, pos, size, err; + unsigned int i; + int pos, size, err; uint8_t *pti; ba2str(src, src_addr); -- cgit