From ae06933cdeb61b1145a1245ea3f40a3d159d215b Mon Sep 17 00:00:00 2001 From: Edwin Vane Date: Thu, 26 Jul 2012 13:40:14 -0400 Subject: [PATCH] Trivial signed/unsigned warning fix for adbd Change-Id: Icd674006bb2b526166960b4f90eb274030d80439 Author: Edwin Vane Reviewed-by: Ariel J Bernal --- adb/transport_local.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adb/transport_local.c b/adb/transport_local.c index 105c502e5..96a24ba50 100644 --- a/adb/transport_local.c +++ b/adb/transport_local.c @@ -266,7 +266,7 @@ static const char _ok_resp[] = "ok"; /* Send the 'accept' request. */ res = adb_write(fd, _accept_req, strlen(_accept_req)); - if (res == strlen(_accept_req)) { + if ((size_t)res == strlen(_accept_req)) { /* Wait for the response. In the response we expect 'ok' on success, * or 'ko' on failure. */ res = adb_read(fd, tmp, sizeof(tmp));