Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/ntp/dist/libntp Don't bother calling log for va...
details: https://anonhg.NetBSD.org/src/rev/bfafee6498ae
branches: trunk
changeset: 812140:bfafee6498ae
user: christos <christos%NetBSD.org@localhost>
date: Wed Dec 02 02:04:06 2015 +0000
description:
Don't bother calling log for values <= 1... XXX: should use ilog() instead.
Fixes vax.
diffstat:
external/bsd/ntp/dist/libntp/authkeys.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r fed433f0a6e5 -r bfafee6498ae external/bsd/ntp/dist/libntp/authkeys.c
--- a/external/bsd/ntp/dist/libntp/authkeys.c Wed Dec 02 01:09:49 2015 +0000
+++ b/external/bsd/ntp/dist/libntp/authkeys.c Wed Dec 02 02:04:06 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: authkeys.c,v 1.7 2015/10/23 18:06:19 christos Exp $ */
+/* $NetBSD: authkeys.c,v 1.8 2015/12/02 02:04:06 christos Exp $ */
/*
* authkeys.c - routines to manage the storage of authentication keys
@@ -236,7 +236,7 @@
symkey * sk;
totalkeys = authnumkeys + authnumfreekeys;
- hashbits = auth_log2(totalkeys / 4.0) + 1;
+ hashbits = (totalkeys <= 4 ? 0 : auth_log2(totalkeys / 4.0)) + 1;
hashbits = max(4, hashbits);
hashbits = min(15, hashbits);
Home |
Main Index |
Thread Index |
Old Index