lhash-includes-cleanup-20021027

make stddef be included when building ukernel so NULL is defined
cleanup redundancy
This commit is contained in:
Derrick Brashear 2002-10-30 07:03:05 +00:00
parent e1f2501c4f
commit 76b9b95174
2 changed files with 3 additions and 6 deletions

View File

@ -12,16 +12,13 @@
RCSID("$Header$"); RCSID("$Header$");
#ifdef KERNEL
#include "afs_atomlist.h"
#include "afs_lhash.h"
#else /* KERNEL */
#include "afs_atomlist.h" #include "afs_atomlist.h"
#include "afs_lhash.h" #include "afs_lhash.h"
#ifndef KERNEL
/* for now, only turn on assertions in user-space code */ /* for now, only turn on assertions in user-space code */
#include <assert.h> #include <assert.h>
#define CHECK_INVARIANTS #define CHECK_INVARIANTS
#endif /* KERNEL */ #endif /* !KERNEL */
/* max hash table load factor */ /* max hash table load factor */
enum { LOAD_FACTOR = 5 }; enum { LOAD_FACTOR = 5 };

View File

@ -28,7 +28,7 @@
#ifndef AFS_LHASH_H #ifndef AFS_LHASH_H
#define AFS_LHASH_H #define AFS_LHASH_H
#ifndef KERNEL #if !defined(KERNEL) || defined(UKERNEL)
#include <stddef.h> #include <stddef.h>
#endif #endif