aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Richardson <mcr@credil.org>2010-06-02 19:21:39 -0400
committerJean-Baptiste Queru <jbq@google.com>2010-06-14 14:49:08 -0700
commiteb558b9240743e24c87796191f54c99890641b14 (patch)
treed1563ef68c42ed5cefd6ea45c65aa4f2aa311a38
parent13b012aafff1bcc3a87e69eca82a9611e8842bac (diff)
downloadsystem_core-eb558b9240743e24c87796191f54c99890641b14.tar.gz
system_core-eb558b9240743e24c87796191f54c99890641b14.tar.bz2
system_core-eb558b9240743e24c87796191f54c99890641b14.zip
eliminate a compiler warning: signed/unsigned length
Change-Id: I6139a1b3f9caa8fe3492e4850dcc58d8d5ff0cfb
-rw-r--r--adb/usb_vendors.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/adb/usb_vendors.c b/adb/usb_vendors.c
index 6d85fb15..e9e14da3 100644
--- a/adb/usb_vendors.c
+++ b/adb/usb_vendors.c
@@ -151,7 +151,7 @@ void usb_vendors_init(void)
/* builds the path to the adb vendor id file. returns 0 if success */
int build_path(char* buff, size_t len, const char* format, const char* home)
{
- if (snprintf(buff, len, format, home, ANDROID_PATH, ANDROID_ADB_INI) >= len) {
+ if (snprintf(buff, len, format, home, ANDROID_PATH, ANDROID_ADB_INI) >= (signed)len) {
return 1;
}