From 4935ff097ba93403391340d75f56f52e50112a54 Mon Sep 17 00:00:00 2001 From: Ludovic Rousseau Date: Wed, 19 Jun 2013 13:21:06 +0200 Subject: [PATCH] Core: fix compiler warning in libusb_setlocale() Hello, A small patch for: strerror.c: In function 'libusb_setlocale': strerror.c:148: warning: comparison between signed and unsigned strerror.c:152: warning: comparison between signed and unsigned -- Dr. Ludovic Rousseau From a4144845845cd0a06fb9074ba2d6669ece3a5b1a Mon Sep 17 00:00:00 2001 From: Ludovic Rousseau Date: Wed, 19 Jun 2013 13:16:31 +0200 Subject: [PATCH] Core: fix compiler warning in libusb_setlocale() strerror.c: In function 'libusb_setlocale': strerror.c:148: warning: comparison between signed and unsigned strerror.c:152: warning: comparison between signed and unsigned Signed-off-by: Hans de Goede --- libusb/strerror.c | 2 +- libusb/version_nano.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libusb/strerror.c b/libusb/strerror.c index dfb4863..aab82b6 100644 --- a/libusb/strerror.c +++ b/libusb/strerror.c @@ -139,7 +139,7 @@ static const char* usbi_localized_errors[ARRAYSIZE(usbi_locale_supported)][LIBUS int API_EXPORTED libusb_setlocale(const char *locale) { - int i; + size_t i; if ( (locale == NULL) || (strlen(locale) < 2) || ((strlen(locale) > 2) && (locale[2] != '-') && (locale[2] != '_') && (locale[2] != '.')) ) diff --git a/libusb/version_nano.h b/libusb/version_nano.h index 1a7fc02..915debd 100644 --- a/libusb/version_nano.h +++ b/libusb/version_nano.h @@ -1 +1 @@ -#define LIBUSB_NANO 10746 +#define LIBUSB_NANO 10747 -- 2.7.4