Module Name:    src
Committed By:   mrg
Date:           Fri Aug 23 07:17:31 UTC 2019

Modified Files:
        src/sys/dev/usb: usb.h

Log Message:
avoid using old bsd types (u_int etc) so that this compiles with
_POSIX_C_SOURCE as noted in PR#48339.


To generate a diff of this commit:
cvs rdiff -u -r1.117 -r1.118 src/sys/dev/usb/usb.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/usb/usb.h
diff -u src/sys/dev/usb/usb.h:1.117 src/sys/dev/usb/usb.h:1.118
--- src/sys/dev/usb/usb.h:1.117	Wed Aug  7 08:47:09 2019
+++ src/sys/dev/usb/usb.h	Fri Aug 23 07:17:31 2019
@@ -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_endpoint_desc {
 };
 
 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_string_desc {
 };
 
 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_device_info_old {
 };
 
 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 */

Reply via email to