From aba8e7ac60d0212345716ee622ebf9ddd7c329d0 Mon Sep 17 00:00:00 2001 From: provos Date: Wed, 23 Apr 1997 22:37:50 +0000 Subject: [PATCH] pmod to u_int16_t, Angelos kindly reminded me --- lib/libc/net/res_random.c | 10 +++++----- 1 file 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 @@ -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; -- 2.20.1