mirror of
https://github.com/shadps4-emu/ext-libusb.git
synced 2026-01-31 00:55:21 +01:00
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:
committed by
Tormod Volden
parent
d1e4372464
commit
3dbfa16f0c
@@ -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;
|
||||
|
||||
@@ -1 +1 @@
|
||||
#define LIBUSB_NANO 11959
|
||||
#define LIBUSB_NANO 11960
|
||||
|
||||
Reference in New Issue
Block a user