summaryrefslogtreecommitdiff
path: root/lib/libc/net
diff options
context:
space:
mode:
authorNiels Provos <provos@cvs.openbsd.org>1997-04-23 22:37:51 +0000
committerNiels Provos <provos@cvs.openbsd.org>1997-04-23 22:37:51 +0000
commit0afd3b94ff39da61cc76ff1e1b6bd1b454e20374 (patch)
tree43debd43300b82f968cf11074e8c971ccb519cf1 /lib/libc/net
parentaa0c9ab9076ef408ae1401a775cd79fcbd4f6cf0 (diff)
pmod to u_int16_t, Angelos kindly reminded me
Diffstat (limited to 'lib/libc/net')
-rw-r--r--lib/libc/net/res_random.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libc/net/res_random.c b/lib/libc/net/res_random.c
index 3767d9315f7..2fead78e9c0 100644
--- a/lib/libc/net/res_random.c
+++ b/lib/libc/net/res_random.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: res_random.c,v 1.3 1997/04/19 10:07:01 provos Exp $ */
+/* $OpenBSD: res_random.c,v 1.4 1997/04/23 22:37:50 provos Exp $ */
/*
* Copyright 1997 Niels Provos <provos@physnet.uni-hamburg.de>
@@ -92,7 +92,7 @@ static long ru_reseed;
static u_int32_t tmp; /* Storage for unused random */
static struct timeval tv;
-static u_int32_t pmod __P((u_int32_t, u_int32_t, u_int32_t));
+static u_int16_t pmod __P((u_int16_t, u_int16_t, u_int16_t));
static void res_initid __P((void));
/*
@@ -100,11 +100,11 @@ static void res_initid __P((void));
* of 0 - (mod-1)
*/
-static u_int32_t
+static u_int16_t
pmod(gen, exp, mod)
- u_int32_t gen, exp, mod;
+ u_int16_t gen, exp, mod;
{
- u_int32_t s, t, u;
+ u_int16_t s, t, u;
s = 1;
t = gen;