[Git][NTPsec/ntpsec][master] Minor cleanup

Hal Murray gitlab at mg.gitlab.com
Sat Feb 13 11:06:42 UTC 2016


Hal Murray pushed to branch master at NTPsec / ntpsec


Commits:
03d855b1 by Hal Murray at 2016-02-13T02:57:37-08:00
Minor cleanup

- - - - -


1 changed file:

- libntp/authkeys.c


Changes:

=====================================
libntp/authkeys.c
=====================================
--- a/libntp/authkeys.c
+++ b/libntp/authkeys.c
@@ -55,18 +55,15 @@ static void		freesymkey(symkey *, symkey **);
 static void		free_auth_mem(void);
 #endif
 
-symkey	key_listhead;		/* list of all in-use keys */;
+symkey key_listhead;		/* list of all in-use keys */;
 /*
  * The hash table. This is indexed by the low order bits of the
- * keyid. We make this fairly big for potentially busy servers.
+ * keyid. This gets updated in auth_resize_hashtable
  */
-#define	DEF_AUTHHASHSIZE	64
-//#define	HASHMASK	((HASHSIZE)-1)
-#define	KEYHASH(keyid)	((keyid) & authhashmask)
-
-int	authhashdisabled;
-u_short	authhashbuckets = DEF_AUTHHASHSIZE;
-u_short authhashmask = DEF_AUTHHASHSIZE - 1;
+#define KEYHASH(keyid)	((keyid) & authhashmask)
+#define INIT_AUTHHASHSIZE 64
+u_short authhashbuckets = INIT_AUTHHASHSIZE;
+u_short authhashmask = INIT_AUTHHASHSIZE - 1;
 symkey **key_hash;
 
 u_long authkeynotfound;		/* keys not found */



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/03d855b1b70922d912838b7810b02ee5c6939f83
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ntpsec.org/pipermail/vc/attachments/20160213/9e89f25a/attachment.html>


More information about the vc mailing list