Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net/lagg Avoid signed/unsigned comparision by casting th...
details: https://anonhg.NetBSD.org/src/rev/016ebe43fc1d
branches: trunk
changeset: 364665:016ebe43fc1d
user: martin <martin%NetBSD.org@localhost>
date: Mon Apr 04 09:59:41 2022 +0000
description:
Avoid signed/unsigned comparision by casting the sizeof expression.
diffstat:
sys/net/lagg/if_lagg.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 5d6c1a5c2fb1 -r 016ebe43fc1d sys/net/lagg/if_lagg.c
--- a/sys/net/lagg/if_lagg.c Mon Apr 04 07:04:20 2022 +0000
+++ b/sys/net/lagg/if_lagg.c Mon Apr 04 09:59:41 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_lagg.c,v 1.46 2022/04/04 06:10:00 yamaguchi Exp $ */
+/* $NetBSD: if_lagg.c,v 1.47 2022/04/04 09:59:41 martin Exp $ */
/*
* Copyright (c) 2005, 2006 Reyk Floeter <reyk%openbsd.org@localhost>
@@ -20,7 +20,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_lagg.c,v 1.46 2022/04/04 06:10:00 yamaguchi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_lagg.c,v 1.47 2022/04/04 09:59:41 martin Exp $");
#ifdef _KERNEL_OPT
#include "opt_inet.h"
@@ -1121,7 +1121,7 @@
* if we are not in promiscuous mode.
*/
- if (__predict_false(m->m_len < sizeof(*eh))) {
+ if (__predict_false(m->m_len < (int)sizeof(*eh))) {
if ((m = m_pullup(m, sizeof(*eh))) == NULL) {
if_statinc(ifp, if_ierrors);
goto out;
Home |
Main Index |
Thread Index |
Old Index