diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-01-16 16:25:51 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-01-16 16:25:51 +0000 |
commit | e188cfc0eef8e45aaec37715ff8af7ca7e0dafe3 (patch) | |
tree | 35a099f370a1c1b128dcd7fd9852afb95b8c29d6 /usr.sbin/config/hash.c | |
parent | 7192da5fd710324ff05492049a57b01ad862d716 (diff) |
More evil bootstrap code. #ifndef ALIGNBYTES #define ALIGNBYTES 3.
Which makes this code go all wrong depending on where a system has put
their things like ALIGNBYTES.
Delete with prejudice. When someone needs to compile this in another
environment, they need to face this hurdle, and maybe change the
embedded memory allocator...
Diffstat (limited to 'usr.sbin/config/hash.c')
-rw-r--r-- | usr.sbin/config/hash.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/usr.sbin/config/hash.c b/usr.sbin/config/hash.c index e9fda768a6b..d387c27a52d 100644 --- a/usr.sbin/config/hash.c +++ b/usr.sbin/config/hash.c @@ -1,4 +1,4 @@ -/* $OpenBSD: hash.c,v 1.16 2014/05/18 09:29:54 espie Exp $ */ +/* $OpenBSD: hash.c,v 1.17 2015/01/16 16:25:50 deraadt Exp $ */ /* $NetBSD: hash.c,v 1.4 1996/11/07 22:59:43 gwr Exp $ */ /* @@ -49,17 +49,6 @@ #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. */ |