From 476f3cedac9f50e73a80c95c0da9f61b0741764e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20Louren=C3=A7o?= <16304376+samuelfmlourenco@users.noreply.github.com> Date: Mon, 2 Sep 2024 00:15:53 +0100 Subject: [PATCH] Add files via upload --- libusb-extra.c | 6 +++--- libusb-extra.h | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/libusb-extra.c b/libusb-extra.c index 900f8e9..71b22ae 100644 --- a/libusb-extra.c +++ b/libusb-extra.c @@ -1,5 +1,5 @@ -/* Extra functions for libusb - Version 1.0.3 - Copyright (c) 2018-2021 Samuel Lourenço +/* Extra functions for libusb - Version 1.0.4 + Copyright (c) 2018-2024 Samuel Lourenço This library is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by @@ -23,7 +23,7 @@ #include "libusb-extra.h" // Opens the device with matching VID, PID and serial number -libusb_device_handle *libusb_open_device_with_vid_pid_serial(libusb_context *context, uint16_t vid, uint16_t pid, unsigned char *serial) +libusb_device_handle *libusb_open_device_with_vid_pid_serial(libusb_context *context, uint16_t vid, uint16_t pid, const unsigned char *serial) { libusb_device **devs; libusb_device_handle *devhandle = NULL; diff --git a/libusb-extra.h b/libusb-extra.h index 704bda4..67ad762 100644 --- a/libusb-extra.h +++ b/libusb-extra.h @@ -1,5 +1,5 @@ -/* Extra functions for libusb - Version 1.0.3 - Copyright (c) 2018-2021 Samuel Lourenço +/* Extra functions for libusb - Version 1.0.4 + Copyright (c) 2018-2024 Samuel Lourenço This library is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by @@ -25,6 +25,6 @@ #include // Function prototypes -libusb_device_handle *libusb_open_device_with_vid_pid_serial(libusb_context *context, uint16_t vid, uint16_t pid, unsigned char *serial); +libusb_device_handle *libusb_open_device_with_vid_pid_serial(libusb_context *context, uint16_t vid, uint16_t pid, const unsigned char *serial); #endif