diff options
author | Ludovic Rousseau <ludovic.rousseau@gmail.com> | 2013-02-16 16:58:17 +0100 |
---|---|---|
committer | Ludovic Rousseau <ludovic.rousseau+github@gmail.com> | 2013-02-18 18:23:14 +0100 |
commit | 272ab77cce0ebb668e53eac52f3a555e7f7810ad (patch) | |
tree | 7b6df4ea95cd7718e1eeb2cc9993f971b3bede3a | |
parent | ad26880470dc957ee58dd8fa377184dad99e01fa (diff) | |
download | libusb-272ab77cce0ebb668e53eac52f3a555e7f7810ad.tar.gz |
Windows: fix compiler warnings
libusb/os/poll_windows.c:176:5: warning: no previous prototype for '_fd_to_index_and_lock' [-Wmissing-prototypes]
libusb/os/poll_windows.c:197:13: warning: no previous prototype for 'create_overlapped' [-Wmissing-prototypes]
libusb/os/poll_windows.c:211:6: warning: no previous prototype for 'free_overlapped' [-Wmissing-prototypes]
libusb/os/poll_windows.c:223:6: warning: no previous prototype for 'reset_overlapped' [-Wmissing-prototypes]
libusb/os/poll_windows.c:401:6: warning: no previous prototype for '_free_index' [-Wmissing-prototypes]
-rw-r--r-- | libusb/os/poll_windows.c | 10 | ||||
-rw-r--r-- | libusb/version_nano.h | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/libusb/os/poll_windows.c b/libusb/os/poll_windows.c index 9ece711..55e93c7 100644 --- a/libusb/os/poll_windows.c +++ b/libusb/os/poll_windows.c @@ -173,7 +173,7 @@ void init_polling(void) } // Internal function to retrieve the table index (and lock the fd mutex) -int _fd_to_index_and_lock(int fd) +static int _fd_to_index_and_lock(int fd) { int i; @@ -194,7 +194,7 @@ int _fd_to_index_and_lock(int fd) return -1; } -OVERLAPPED *create_overlapped(void) +static OVERLAPPED *create_overlapped(void) { OVERLAPPED *overlapped = (OVERLAPPED*) calloc(1, sizeof(OVERLAPPED)); if (overlapped == NULL) { @@ -208,7 +208,7 @@ OVERLAPPED *create_overlapped(void) return overlapped; } -void free_overlapped(OVERLAPPED *overlapped) +static void free_overlapped(OVERLAPPED *overlapped) { if (overlapped == NULL) return; @@ -220,7 +220,7 @@ void free_overlapped(OVERLAPPED *overlapped) free(overlapped); } -void reset_overlapped(OVERLAPPED *overlapped) +static void reset_overlapped(OVERLAPPED *overlapped) { HANDLE event_handle; if (overlapped == NULL) @@ -398,7 +398,7 @@ struct winfd usbi_create_fd(HANDLE handle, int access_mode, struct usbi_transfer return INVALID_WINFD; } -void _free_index(int _index) +static void _free_index(int _index) { // Cancel any async IO (Don't care about the validity of our handles for this) cancel_io(_index); diff --git a/libusb/version_nano.h b/libusb/version_nano.h index 8fb6206..a9c7c09 100644 --- a/libusb/version_nano.h +++ b/libusb/version_nano.h @@ -1 +1 @@ -#define LIBUSB_NANO 10607 +#define LIBUSB_NANO 10608 |