summaryrefslogtreecommitdiff
path: root/src/udev/udev-builtin-usb_id.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-03-09 00:09:46 +0100
committerAnthony G. Basile <blueness@gentoo.org>2015-03-18 19:30:09 -0400
commit87bf8c79dccc73e7282982f3e248e9eac9b52a6c (patch)
treed99defb39f4b0c62d792eb4c6ea69e38472bfef7 /src/udev/udev-builtin-usb_id.c
parent60e1a981160cd280e9cbbab61d0174f3ec86b02d (diff)
udev: use inttypes.h types wherever appropriate
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'src/udev/udev-builtin-usb_id.c')
-rw-r--r--src/udev/udev-builtin-usb_id.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/udev/udev-builtin-usb_id.c b/src/udev/udev-builtin-usb_id.c
index 264ff5d6f7..6516d93a3c 100644
--- 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 {
- 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)