summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPete Batard <pbatard@gmail.com>2010-01-15 03:41:52 +0000
committerPete Batard <pbatard@gmail.com>2010-01-15 03:41:52 +0000
commit8981e69c7da1c6b8c9e97510bd5b1dd137e50cdb (patch)
treecfe6ccd6f591fd73ea992517eaf47db8f2336c25
parent4c004025874600727c986a97dbf2bf2fb5600660 (diff)
downloadlibusb-8981e69c7da1c6b8c9e97510bd5b1dd137e50cdb.tar.gz
r79: fixed remaining cygwin warnings (toupper casts)
-rw-r--r--libusb/os/windows_usb.c2
-rw-r--r--libusb/os/windows_usb.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/libusb/os/windows_usb.c b/libusb/os/windows_usb.c
index d628e1f..3ef060a 100644
--- a/libusb/os/windows_usb.c
+++ b/libusb/os/windows_usb.c
@@ -200,7 +200,7 @@ static char* sanitize_path(const char* path)
// Same goes for '\' and '#' after the root prefix. Ensure '#' is used
for(j=root_size; j<size; j++) {
- ret_path[j] = (char)toupper(ret_path[j]); // Fix case too
+ ret_path[j] = (char)toupper((int)ret_path[j]); // Fix case too
if (ret_path[j] == '\\')
ret_path[j] = '#';
}
diff --git a/libusb/os/windows_usb.h b/libusb/os/windows_usb.h
index d2064e7..8c59c7c 100644
--- a/libusb/os/windows_usb.h
+++ b/libusb/os/windows_usb.h
@@ -61,7 +61,7 @@ void inline upperize(char* str) {
size_t i;
if (str == NULL) return;
for (i=0; i<strlen(str); i++)
- str[i] = (char)toupper(str[i]);
+ str[i] = (char)toupper((int)str[i]);
}
#define MAX_CTRL_BUFFER_LENGTH 4096