summaryrefslogtreecommitdiffstats
path: root/adb
diff options
context:
space:
mode:
authorStephen Hines <srhines@google.com>2012-08-08 16:02:42 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2012-08-08 16:02:42 -0700
commite7b2a43638956250d329a9ddb4eda21cd0a16ac7 (patch)
tree2db926aa88c1e07671371c12bd534d8ed1520ecd /adb
parent02adb534dafbd955e3470b8f370b108c5b11ce37 (diff)
parente551055e17dae5d37f5cb428d63ddcae2e9341a2 (diff)
downloadsystem_core-e7b2a43638956250d329a9ddb4eda21cd0a16ac7.zip
system_core-e7b2a43638956250d329a9ddb4eda21cd0a16ac7.tar.gz
system_core-e7b2a43638956250d329a9ddb4eda21cd0a16ac7.tar.bz2
am e551055e: Merge "Fix signed/unsigned comparison warning"
* commit 'e551055e17dae5d37f5cb428d63ddcae2e9341a2': Fix signed/unsigned comparison warning
Diffstat (limited to 'adb')
-rw-r--r--adb/adb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/adb/adb.c b/adb/adb.c
index f4ee448..229f3ef 100644
--- a/adb/adb.c
+++ b/adb/adb.c
@@ -1067,7 +1067,7 @@ void connect_device(char* host, char* buffer, int buffer_size)
strncpy(hostbuf, host, sizeof(hostbuf) - 1);
if (portstr) {
- if (portstr - host >= sizeof(hostbuf)) {
+ if ((unsigned int)(portstr - host) >= sizeof(hostbuf)) {
snprintf(buffer, buffer_size, "bad host name %s", host);
return;
}