Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/usb void -Wsign-compare issue and add a stupid cast.
details: https://anonhg.NetBSD.org/src/rev/83299f1b8a2d
branches: trunk
changeset: 964656:83299f1b8a2d
user: mrg <mrg%NetBSD.org@localhost>
date: Sun Aug 11 05:14:41 2019 +0000
description:
void -Wsign-compare issue and add a stupid cast.
revert this if m_pkthdr.len becomes unsigned.
diffstat:
sys/dev/usb/if_axe.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r e3cdaaf3c614 -r 83299f1b8a2d sys/dev/usb/if_axe.c
--- a/sys/dev/usb/if_axe.c Sun Aug 11 02:37:03 2019 +0000
+++ b/sys/dev/usb/if_axe.c Sun Aug 11 05:14:41 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_axe.c,v 1.111 2019/08/11 02:37:03 mrg Exp $ */
+/* $NetBSD: if_axe.c,v 1.112 2019/08/11 05:14:41 mrg Exp $ */
/* $OpenBSD: if_axe.c,v 1.137 2016/04/13 11:03:37 mpi Exp $ */
/*
@@ -87,7 +87,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_axe.c,v 1.111 2019/08/11 02:37:03 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_axe.c,v 1.112 2019/08/11 05:14:41 mrg Exp $");
#ifdef _KERNEL_OPT
#include "opt_usb.h"
@@ -1192,7 +1192,7 @@
length, m->m_pkthdr.len, sizeof(hdr), 0);
}
- if (m->m_pkthdr.len > un->un_tx_bufsz - hdr_len - tlr_len)
+ if ((unsigned)m->m_pkthdr.len > un->un_tx_bufsz - hdr_len - tlr_len)
return 0;
length = hdr_len + m->m_pkthdr.len + tlr_len;
Home |
Main Index |
Thread Index |
Old Index