summaryrefslogtreecommitdiff
path: root/usr.sbin/config/hash.c
diff options
context:
space:
mode:
authorbriggs <briggs@cvs.openbsd.org>1997-01-18 02:24:22 +0000
committerbriggs <briggs@cvs.openbsd.org>1997-01-18 02:24:22 +0000
commit3365c90dc4687554bb99299cf49004ba542297e0 (patch)
tree4b800c042060d3d58df05513f78ee52a1d93bdfb /usr.sbin/config/hash.c
parent2b5c10d28c4ef509dc19fbd6de2b20d9c1410699 (diff)
Sync. with current NetBSD--keeping local changes.
Diffstat (limited to 'usr.sbin/config/hash.c')
-rw-r--r--usr.sbin/config/hash.c15
1 files changed, 13 insertions, 2 deletions
diff --git a/usr.sbin/config/hash.c b/usr.sbin/config/hash.c
index 538b7a703ff..bdff477855a 100644
--- a/usr.sbin/config/hash.c
+++ b/usr.sbin/config/hash.c
@@ -1,5 +1,5 @@
-/* $OpenBSD: hash.c,v 1.3 1996/04/21 23:40:12 deraadt Exp $ */
-/* $NetBSD: hash.c,v 1.3 1996/03/17 13:18:20 cgd Exp $ */
+/* $OpenBSD: hash.c,v 1.4 1997/01/18 02:24:15 briggs Exp $ */
+/* $NetBSD: hash.c,v 1.4 1996/11/07 22:59:43 gwr Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -51,6 +51,17 @@
#include "config.h"
/*
+ * These are really for MAKE_BOOTSTRAP but harmless.
+ * XXX - Why not just use malloc in here, anyway?
+ */
+#ifndef ALIGNBYTES
+#define ALIGNBYTES 3
+#endif
+#ifndef ALIGN
+#define ALIGN(p) (((long)(p) + ALIGNBYTES) &~ ALIGNBYTES)
+#endif
+
+/*
* Interned strings are kept in a hash table. By making each string
* unique, the program can compare strings by comparing pointers.
*/