summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLudovic Rousseau <ludovic.rousseau@gmail.com>2013-06-19 13:21:06 +0200
committerHans de Goede <hdegoede@redhat.com>2013-06-19 16:12:35 +0200
commit4935ff097ba93403391340d75f56f52e50112a54 (patch)
tree154a0d737655deb380664d144a047ce6d6ba0274
parent88828bd7c8323cefe307e4e9856daf7e9812d4d5 (diff)
downloadlibusb-4935ff097ba93403391340d75f56f52e50112a54.tar.gz
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 <ludovic.rousseau+github@gmail.com> 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 <hdegoede@redhat.com>
-rw-r--r--libusb/strerror.c2
-rw-r--r--libusb/version_nano.h2
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