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 --- tools/hciattach_tialt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/hciattach_tialt.c') diff --git a/tools/hciattach_tialt.c b/tools/hciattach_tialt.c index 8ddda359..aa63190a 100644 --- a/tools/hciattach_tialt.c +++ b/tools/hciattach_tialt.c @@ -142,7 +142,7 @@ static int texas_load_firmware(int fd, const char *firmware) { iov_cmd[1].iov_base = data; iov_cmd[1].iov_len = cmd->plen; nw = writev(fd, iov_cmd, 2); - FAILIF(nw != sizeof(cmd) + cmd->plen, + FAILIF(nw != (int) sizeof(cmd) + cmd->plen, "Could not send entire command (sent only %d bytes)!\n", nw); } -- cgit