Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 868bc2df authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix pointer to int casting" into main

parents b7d0c72a b8c7df9b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -47,7 +47,7 @@ static void milli_sleep(int millis) {
}

static void* hid_thread(void* arg) {
    int fd = (int)arg;
    int fd = (int)(uintptr_t)arg;
    char buffer[4096];
    int id, ret, offset;
    struct usb_device *device;
+1 −1
Original line number Diff line number Diff line
@@ -86,7 +86,7 @@ static void send_string(struct usb_device *device, int index, const char* string
static int usb_device_added(const char *devname, void* client_data) {
    uint16_t vendorId, productId;
    int ret;
    int enable_accessory = (int)client_data;
    bool enable_accessory = client_data != NULL;

    struct usb_device *device = usb_device_open(devname);
    if (!device) {