From ee80876dc07a9e89475a075ba821db436b1c3025 Mon Sep 17 00:00:00 2001
From: Sean McBride <sean@rogue-research.com>
Date: Fri, 11 Feb 2011 11:28:04 -0500
Subject: [PATCH 3/3] fixed ticket #100, compiler warning casting int to pointer of different size
---
libusb/os/darwin_usb.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/libusb/os/darwin_usb.c b/libusb/os/darwin_usb.c
index a44599b..8d4b6a6 100644
|
a
|
b
|
static void *event_thread_main (void *arg0) { |
| 305 | 305 | if (kresult != kIOReturnSuccess) { |
| 306 | 306 | usbi_err (ctx, "could not add hotplug event source: %s", darwin_error_str (kresult)); |
| 307 | 307 | |
| 308 | | pthread_exit ((void *)kresult); |
| | 308 | pthread_exit (NULL); |
| 309 | 309 | } |
| 310 | 310 | |
| 311 | 311 | /* arm notifiers */ |
| … |
… |
static void *event_thread_main (void *arg0) { |
| 329 | 329 | |
| 330 | 330 | libusb_darwin_acfl = NULL; |
| 331 | 331 | |
| 332 | | pthread_exit (0); |
| | 332 | pthread_exit (NULL); |
| 333 | 333 | } |
| 334 | 334 | |
| 335 | 335 | static int darwin_init(struct libusb_context *ctx) { |
| … |
… |
static int darwin_init(struct libusb_context *ctx) { |
| 355 | 355 | |
| 356 | 356 | static void darwin_exit (void) { |
| 357 | 357 | if (!(--initCount)) { |
| 358 | | void *ret; |
| 359 | 358 | |
| 360 | 359 | /* stop the async runloop */ |
| 361 | 360 | CFRunLoopStop (libusb_darwin_acfl); |
| 362 | | pthread_join (libusb_darwin_at, &ret); |
| | 361 | pthread_join (libusb_darwin_at, NULL); |
| 363 | 362 | |
| 364 | 363 | if (libusb_darwin_mp) |
| 365 | 364 | mach_port_deallocate(mach_task_self(), libusb_darwin_mp); |