chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
885fdeb
)
udev: use inttypes.h types wherever appropriate
author
Lennart Poettering
<lennart@poettering.net>
Sun, 8 Mar 2015 23:09:46 +0000
(
00:09
+0100)
committer
Lennart Poettering
<lennart@poettering.net>
Mon, 9 Mar 2015 17:02:22 +0000
(18:02 +0100)
src/udev/udev-builtin-usb_id.c
patch
|
blob
|
history
diff --git
a/src/udev/udev-builtin-usb_id.c
b/src/udev/udev-builtin-usb_id.c
index 264ff5d6f7fe8a850204f314421c095cf8af8c65..6516d93a3c960e2f24afb4b3df4ec805daf91fd9 100644
(file)
--- a/
src/udev/udev-builtin-usb_id.c
+++ b/
src/udev/udev-builtin-usb_id.c
@@
-153,15
+153,15
@@
static int dev_if_packed_info(struct udev_device *dev, char *ifs_str, size_t len
int pos = 0;
unsigned strpos = 0;
struct usb_interface_descriptor {
int pos = 0;
unsigned strpos = 0;
struct usb_interface_descriptor {
- u
_
int8_t bLength;
- u
_
int8_t bDescriptorType;
- u
_
int8_t bInterfaceNumber;
- u
_
int8_t bAlternateSetting;
- u
_
int8_t bNumEndpoints;
- u
_
int8_t bInterfaceClass;
- u
_
int8_t bInterfaceSubClass;
- u
_
int8_t bInterfaceProtocol;
- u
_
int8_t iInterface;
+ uint8_t bLength;
+ uint8_t bDescriptorType;
+ uint8_t bInterfaceNumber;
+ uint8_t bAlternateSetting;
+ uint8_t bNumEndpoints;
+ uint8_t bInterfaceClass;
+ uint8_t bInterfaceSubClass;
+ uint8_t bInterfaceProtocol;
+ uint8_t iInterface;
} _packed_;
if (asprintf(&filename, "%s/descriptors", udev_device_get_syspath(dev)) < 0)
} _packed_;
if (asprintf(&filename, "%s/descriptors", udev_device_get_syspath(dev)) < 0)