lhash-includes-cleanup-20021027
authorDerrick Brashear <shadow@dementia.org>
Wed, 30 Oct 2002 07:03:05 +0000 (07:03 +0000)
committerDerrick Brashear <shadow@dementia.org>
Wed, 30 Oct 2002 07:03:05 +0000 (07:03 +0000)
make stddef be included when building ukernel so NULL is defined
cleanup redundancy

src/util/afs_lhash.c
src/util/afs_lhash.h

index 10d2d20..4f3bbbd 100644 (file)
 
 RCSID("$Header$");
 
-#ifdef KERNEL
-#include "afs_atomlist.h"
-#include "afs_lhash.h"
-#else /* KERNEL */
 #include "afs_atomlist.h"
 #include "afs_lhash.h"
+#ifndef KERNEL
 /* for now, only turn on assertions in user-space code */
 #include <assert.h>
 #define CHECK_INVARIANTS
-#endif /* KERNEL */
+#endif /* !KERNEL */
 
 /* max hash table load factor */
 enum { LOAD_FACTOR = 5 };
index 911c29a..e525477 100644 (file)
@@ -28,7 +28,7 @@
 #ifndef AFS_LHASH_H
 #define AFS_LHASH_H
 
-#ifndef KERNEL
+#if !defined(KERNEL) || defined(UKERNEL)
 #include <stddef.h>
 #endif