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

Commit b8c7df9b authored by Fabián Cañas's avatar Fabián Cañas
Browse files

Fix pointer to int casting

Flag: EXEMPT refactor
Test: Build. No functional changes.
Bug: 161386391
Change-Id: Id1194aef7465602d59815a85f13126d3b8c3688e
parent 19c5df9e
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) {