diff options
author | Pete Batard <pbatard@gmail.com> | 2010-10-05 19:49:39 +0100 |
---|---|---|
committer | Pete Batard <pbatard@gmail.com> | 2010-10-05 19:49:39 +0100 |
commit | af66e5a9854cb7fe6d143ee93547393121f97f5c (patch) | |
tree | 1a9bf9209ab9eb3da0209b10dbd7fd3feedef939 /libusb/os | |
parent | a5ea045efa01d31a0feede0fa06d1a8024f602c6 (diff) | |
download | libusb-af66e5a9854cb7fe6d143ee93547393121f97f5c.tar.gz |
fixed missed index -> _index in poll_windows.c debug messages
* follow up from cygwin shadow warning fix
Diffstat (limited to 'libusb/os')
-rw-r--r-- | libusb/os/poll_windows.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libusb/os/poll_windows.c b/libusb/os/poll_windows.c index ad948f7..370d61e 100644 --- a/libusb/os/poll_windows.c +++ b/libusb/os/poll_windows.c @@ -631,7 +631,7 @@ int usbi_poll(struct pollfd *fds, unsigned int nfds, int timeout) } _index = _fd_to_index_and_lock(fds[i].fd); - poll_dbg("fd[%d]=%d: (overlapped=%p) got events %04X", i, poll_fd[index].fd, poll_fd[index].overlapped, fds[i].events); + poll_dbg("fd[%d]=%d: (overlapped=%p) got events %04X", i, poll_fd[_index].fd, poll_fd[_index].overlapped, fds[i].events); if ( (_index < 0) || (poll_fd[_index].handle == INVALID_HANDLE_VALUE) || (poll_fd[_index].handle == 0) || (poll_fd[_index].overlapped == NULL)) { @@ -823,7 +823,7 @@ ssize_t usbi_write(int fd, const void *buf, size_t count) return -1; } - poll_dbg("set pipe event (fd = %d, thread = %08X)", index, GetCurrentThreadId()); + poll_dbg("set pipe event (fd = %d, thread = %08X)", _index, GetCurrentThreadId()); SetEvent(poll_fd[_index].overlapped->hEvent); poll_fd[_index].overlapped->Internal = STATUS_WAIT_0; // If two threads write on the pipe at the same time, we need to |