diff options
author | Chris Dickens <christopher.a.dickens@gmail.com> | 2014-11-17 23:53:10 -0800 |
---|---|---|
committer | Chris Dickens <chris.dickens@hp.com> | 2014-12-19 11:15:55 -0800 |
commit | 5b2f2e11852edf81be401736e5ece7c9debe047e (patch) | |
tree | 25554d32e4c5dc503229c68b36b030b5206dcb0d /libusb/core.c | |
parent | 1b4b7f8b15fb98688a15c1125ede1e018a4451d6 (diff) | |
download | libusb-5b2f2e11852edf81be401736e5ece7c9debe047e.tar.gz |
core: Rename pipe used to signal internal events
Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
Diffstat (limited to 'libusb/core.c')
-rw-r--r-- | libusb/core.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libusb/core.c b/libusb/core.c index 87cb776..042f7a5 100644 --- a/libusb/core.c +++ b/libusb/core.c @@ -1180,8 +1180,8 @@ void usbi_fd_notification(struct libusb_context *ctx) unsigned char dummy = 1; ssize_t r; - /* write some data on control pipe to interrupt event handlers */ - r = usbi_write(ctx->ctrl_pipe[1], &dummy, sizeof(dummy)); + /* write some data on event pipe to interrupt event handlers */ + r = usbi_write(ctx->event_pipe[1], &dummy, sizeof(dummy)); if (r != sizeof(dummy)) usbi_warn(ctx, "internal signalling write failed"); } @@ -1404,8 +1404,8 @@ void API_EXPORTED libusb_close(libusb_device_handle *dev_handle) ctx->device_close++; usbi_mutex_unlock(&ctx->event_data_lock); - /* write some data on control pipe to interrupt event handlers */ - r = usbi_write(ctx->ctrl_pipe[1], &dummy, sizeof(dummy)); + /* write some data on event pipe to interrupt event handlers */ + r = usbi_write(ctx->event_pipe[1], &dummy, sizeof(dummy)); if (r <= 0) { usbi_warn(ctx, "internal signalling write failed, closing anyway"); do_close(ctx, dev_handle); @@ -1419,7 +1419,7 @@ void API_EXPORTED libusb_close(libusb_device_handle *dev_handle) libusb_lock_events(ctx); /* read the dummy data */ - r = usbi_read(ctx->ctrl_pipe[0], &dummy, sizeof(dummy)); + r = usbi_read(ctx->event_pipe[0], &dummy, sizeof(dummy)); if (r <= 0) usbi_warn(ctx, "internal signalling read failed, closing anyway"); |