diff options
author | Stephen Hines <srhines@google.com> | 2012-08-08 16:02:42 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2012-08-08 16:02:42 -0700 |
commit | e7b2a43638956250d329a9ddb4eda21cd0a16ac7 (patch) | |
tree | 2db926aa88c1e07671371c12bd534d8ed1520ecd /adb | |
parent | 02adb534dafbd955e3470b8f370b108c5b11ce37 (diff) | |
parent | e551055e17dae5d37f5cb428d63ddcae2e9341a2 (diff) | |
download | system_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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |