summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoritojun <itojun@openbsd.org>2003-09-21 04:06:39 +0000
committeritojun <itojun@openbsd.org>2003-09-21 04:06:39 +0000
commitb9fdd5f0240dd01992ec3880aa81ec2bbcba58fd (patch)
treed86b78fc8b539a4d9c905e4030b8fe18d07d87aa
parentplug memory leak. from kame. fgsch ok (diff)
downloadwireguard-openbsd-b9fdd5f0240dd01992ec3880aa81ec2bbcba58fd.tar.xz
wireguard-openbsd-b9fdd5f0240dd01992ec3880aa81ec2bbcba58fd.zip
"exp" is a reserved symbol under gcc3/posix. mcbride ok
-rw-r--r--sys/netinet/ip_id.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/netinet/ip_id.c b/sys/netinet/ip_id.c
index 14bb58daffe..0534d406e33 100644
--- a/sys/netinet/ip_id.c
+++ b/sys/netinet/ip_id.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_id.c,v 1.6 2002/03/15 18:19:52 millert Exp $ */
+/* $OpenBSD: ip_id.c,v 1.7 2003/09/21 04:06:39 itojun Exp $ */
/*
* Copyright 1998 Niels Provos <provos@citi.umich.edu>
@@ -93,13 +93,13 @@ u_int16_t ip_randomid(void);
*/
static u_int16_t
-pmod(u_int16_t gen, u_int16_t exp, u_int16_t mod)
+pmod(u_int16_t gen, u_int16_t expo, u_int16_t mod)
{
u_int16_t s, t, u;
s = 1;
t = gen;
- u = exp;
+ u = expo;
while (u) {
if (u & 1)