Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/usb avoid using old bsd types (u_int etc) so that th...
details: https://anonhg.NetBSD.org/src/rev/9c0593d76950
branches: trunk
changeset: 453699:9c0593d76950
user: mrg <mrg%NetBSD.org@localhost>
date: Fri Aug 23 07:17:31 2019 +0000
description:
avoid using old bsd types (u_int etc) so that this compiles with
_POSIX_C_SOURCE as noted in PR#48339.
diffstat:
sys/dev/usb/usb.h | 22 +++++++++++-----------
1 files changed, 11 insertions(+), 11 deletions(-)
diffs (56 lines):
diff -r ab299efbbc5a -r 9c0593d76950 sys/dev/usb/usb.h
--- a/sys/dev/usb/usb.h Fri Aug 23 07:14:35 2019 +0000
+++ b/sys/dev/usb/usb.h Fri Aug 23 07:17:31 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: usb.h,v 1.117 2019/08/07 08:47:09 maxv Exp $ */
+/* $NetBSD: usb.h,v 1.118 2019/08/23 07:17:31 mrg Exp $ */
/*
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -853,9 +853,9 @@
};
struct usb_full_desc {
- int ufd_config_index;
- u_int ufd_size;
- u_char *ufd_data;
+ int ufd_config_index;
+ unsigned ufd_size;
+ unsigned char *ufd_data;
};
struct usb_string_desc {
@@ -865,8 +865,8 @@
};
struct usb_ctl_report_desc {
- int ucrd_size;
- u_char ucrd_data[1024]; /* filled data size will vary */
+ int ucrd_size;
+ unsigned char ucrd_data[1024]; /* filled data size will vary */
};
typedef struct { uint32_t cookie; } usb_event_cookie_t;
@@ -928,17 +928,17 @@
};
struct usb_ctl_report {
- int ucr_report;
- u_char ucr_data[1024]; /* filled data size will vary */
+ int ucr_report;
+ unsigned char ucr_data[1024]; /* filled data size will vary */
};
struct usb_device_stats {
- u_long uds_requests[4]; /* indexed by transfer type UE_* */
+ unsigned long uds_requests[4]; /* indexed by transfer type UE_* */
};
struct usb_bulk_ra_wb_opt {
- u_int ra_wb_buffer_size;
- u_int ra_wb_request_size;
+ unsigned ra_wb_buffer_size;
+ unsigned ra_wb_request_size;
};
/* Events that can be read from /dev/usb */
Home |
Main Index |
Thread Index |
Old Index