eliminate a compiler warning: signed/unsigned length

Change-Id: I6139a1b3f9caa8fe3492e4850dcc58d8d5ff0cfb
This commit is contained in:
Michael Richardson 2010-06-02 19:21:39 -04:00 committed by Jean-Baptiste Queru
parent 13b012aaff
commit eb558b9240
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}