Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/usb Use unsigned variables for buffer length to avoi...
details: https://anonhg.NetBSD.org/src/rev/de64465d87fa
branches: trunk
changeset: 448699:de64465d87fa
user: mlelstv <mlelstv%NetBSD.org@localhost>
date: Thu Feb 07 10:36:20 2019 +0000
description:
Use unsigned variables for buffer length to avoid compiler warnings.
diffstat:
sys/dev/usb/if_axen.c | 6 +++---
sys/dev/usb/if_urevar.h | 4 ++--
2 files changed, 5 insertions(+), 5 deletions(-)
diffs (45 lines):
diff -r b8f068c232cd -r de64465d87fa sys/dev/usb/if_axen.c
--- a/sys/dev/usb/if_axen.c Thu Feb 07 10:29:53 2019 +0000
+++ b/sys/dev/usb/if_axen.c Thu Feb 07 10:36:20 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_axen.c,v 1.35 2019/02/06 08:38:41 rin Exp $ */
+/* $NetBSD: if_axen.c,v 1.36 2019/02/07 10:36:20 mlelstv Exp $ */
/* $OpenBSD: if_axen.c,v 1.3 2013/10/21 10:10:22 yuo Exp $ */
/*
@@ -23,7 +23,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_axen.c,v 1.35 2019/02/06 08:38:41 rin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_axen.c,v 1.36 2019/02/07 10:36:20 mlelstv Exp $");
#ifdef _KERNEL_OPT
#include "opt_inet.h"
@@ -1291,7 +1291,7 @@
struct axen_chain *c;
usbd_status err;
struct axen_sframe_hdr hdr;
- int length, boundary;
+ u_int length, boundary;
c = &sc->axen_cdata.axen_tx_chain[idx];
diff -r b8f068c232cd -r de64465d87fa sys/dev/usb/if_urevar.h
--- a/sys/dev/usb/if_urevar.h Thu Feb 07 10:29:53 2019 +0000
+++ b/sys/dev/usb/if_urevar.h Thu Feb 07 10:36:20 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_urevar.h,v 1.1 2019/02/06 11:55:06 rin Exp $ */
+/* $NetBSD: if_urevar.h,v 1.2 2019/02/07 10:36:20 mlelstv Exp $ */
/* $OpenBSD: if_urereg.h,v 1.5 2018/11/02 21:32:30 jcs Exp $ */
/*-
* Copyright (c) 2015-2016 Kevin Lo <kevlo%FreeBSD.org@localhost>
@@ -118,7 +118,7 @@
struct timeval ure_rx_notice;
struct timeval ure_tx_notice;
- int ure_bufsz;
+ u_int ure_bufsz;
int ure_phyno;
Home |
Main Index |
Thread Index |
Old Index