Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/external/bsd/ipf/netinet put back the cast.
details: https://anonhg.NetBSD.org/src/rev/fb1788f9cdc3
branches: trunk
changeset: 827090:fb1788f9cdc3
user: christos <christos%NetBSD.org@localhost>
date: Thu Oct 12 20:54:36 2017 +0000
description:
put back the cast.
diffstat:
sys/external/bsd/ipf/netinet/ip_state.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 094f6ffdc636 -r fb1788f9cdc3 sys/external/bsd/ipf/netinet/ip_state.c
--- a/sys/external/bsd/ipf/netinet/ip_state.c Thu Oct 12 20:17:27 2017 +0000
+++ b/sys/external/bsd/ipf/netinet/ip_state.c Thu Oct 12 20:54:36 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ip_state.c,v 1.9 2017/10/12 18:27:38 christos Exp $ */
+/* $NetBSD: ip_state.c,v 1.10 2017/10/12 20:54:36 christos Exp $ */
/*
* Copyright (C) 2012 by Darren Reed.
@@ -100,7 +100,7 @@
#if !defined(lint)
#if defined(__NetBSD__)
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ip_state.c,v 1.9 2017/10/12 18:27:38 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ip_state.c,v 1.10 2017/10/12 20:54:36 christos Exp $");
#else
static const char sccsid[] = "@(#)ip_state.c 1.8 6/5/96 (C) 1993-2000 Darren Reed";
static const char rcsid[] = "@(#)Id: ip_state.c,v 1.1.1.2 2012/07/22 13:45:37 darrenr Exp";
@@ -316,7 +316,7 @@
#else
state_seed[i] = ((u_long)state_seed + i) * state_size;
state_seed[i] ^= 0xa5a55a5a;
- state_seed[i] *= state_seed;
+ state_seed[i] *= (u_long)state_seed;
state_seed[i] ^= 0x5a5aa5a5;
state_seed[i] *= state_max;
#endif
Home |
Main Index |
Thread Index |
Old Index