core: Remove some unnecessary consts

The const in the libusb_cpu_to_le16() function declaration was useless.

The consts in the libusb_version struct did have an effect, but were
overly restrictive.

Closes #1540
This commit is contained in:
Sean McBride
2024-07-29 10:50:07 -04:00
committed by Tormod Volden
parent d1e4372464
commit 3dbfa16f0c
2 changed files with 6 additions and 6 deletions

View File

@@ -192,7 +192,7 @@ extern "C" {
* \param x the host-endian value to convert
* \returns the value in little-endian byte order
*/
static inline uint16_t libusb_cpu_to_le16(const uint16_t x)
static inline uint16_t libusb_cpu_to_le16(uint16_t x)
{
union {
uint8_t b8[2];
@@ -1182,16 +1182,16 @@ struct libusb_device_handle;
*/
struct libusb_version {
/** Library major version. */
const uint16_t major;
uint16_t major;
/** Library minor version. */
const uint16_t minor;
uint16_t minor;
/** Library micro version. */
const uint16_t micro;
uint16_t micro;
/** Library nano version. */
const uint16_t nano;
uint16_t nano;
/** Library release candidate suffix string, e.g. "-rc4". */
const char *rc;

View File

@@ -1 +1 @@
#define LIBUSB_NANO 11959
#define LIBUSB_NANO 11960