From eb558b9240743e24c87796191f54c99890641b14 Mon Sep 17 00:00:00 2001 From: Michael Richardson Date: Wed, 2 Jun 2010 19:21:39 -0400 Subject: [PATCH] eliminate a compiler warning: signed/unsigned length Change-Id: I6139a1b3f9caa8fe3492e4850dcc58d8d5ff0cfb --- adb/usb_vendors.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adb/usb_vendors.c b/adb/usb_vendors.c index 6d85fb15d..e9e14da34 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; }