diff options
author | Thorsten Lockert <tholo@cvs.openbsd.org> | 1997-04-30 05:57:06 +0000 |
---|---|---|
committer | Thorsten Lockert <tholo@cvs.openbsd.org> | 1997-04-30 05:57:06 +0000 |
commit | afcec97eadd0a87c94776b984a7c34df8a163546 (patch) | |
tree | d6cf31c868993a76a9ce21cb2fe37416d1772efe /lib/libc/net/res_random.c | |
parent | 0dd9870ecb1afa43b7a8e544cc5557035d6e8f93 (diff) |
Be more careful about possible type promotion
Diffstat (limited to 'lib/libc/net/res_random.c')
-rw-r--r-- | lib/libc/net/res_random.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/libc/net/res_random.c b/lib/libc/net/res_random.c index ebd1831e51b..f3514542027 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.5 1997/04/25 07:43:05 provos Exp $ */ +/* $OpenBSD: res_random.c,v 1.6 1997/04/30 05:57:03 tholo Exp $ */ /* * Copyright 1997 Niels Provos <provos@physnet.uni-hamburg.de> @@ -100,9 +100,14 @@ static void res_initid __P((void)); * of 0 - (mod-1) */ +#if __STDC__ +static u_int16_t +pmod(u_int16_t gen, u_int16_t exp, u_int16_t mod) +#else static u_int16_t pmod(gen, exp, mod) u_int16_t gen, exp, mod; +#endif { u_int16_t s, t, u; |