Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/usb Fix a -Werror=sign-compare
details: https://anonhg.NetBSD.org/src/rev/3bd08d0f7090
branches: trunk
changeset: 349290:3bd08d0f7090
user: skrll <skrll%NetBSD.org@localhost>
date: Sun Dec 04 11:47:29 2016 +0000
description:
Fix a -Werror=sign-compare
diffstat:
sys/dev/usb/if_axe.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 0b508275a179 -r 3bd08d0f7090 sys/dev/usb/if_axe.c
--- a/sys/dev/usb/if_axe.c Sun Dec 04 11:40:01 2016 +0000
+++ b/sys/dev/usb/if_axe.c Sun Dec 04 11:47:29 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_axe.c,v 1.77 2016/12/04 10:08:26 skrll Exp $ */
+/* $NetBSD: if_axe.c,v 1.78 2016/12/04 11:47:29 skrll 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.77 2016/12/04 10:08:26 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_axe.c,v 1.78 2016/12/04 11:47:29 skrll Exp $");
#ifdef _KERNEL_OPT
#include "opt_inet.h"
@@ -1307,7 +1307,7 @@
* of 4.
*/
pktlen = AXE_CSUM_RXBYTES(csum_hdr.len);
- int len = sizeof(csum_hdr) + pktlen;
+ u_int len = sizeof(csum_hdr) + pktlen;
len = (len + 3) & ~3;
if (total_len < len) {
DPRINTFN(20, "total_len %#x < len %#x",
Home |
Main Index |
Thread Index |
Old Index