summaryrefslogtreecommitdiffstats
path: root/source/ubiqx/ubi_Cache.c
diff options
context:
space:
mode:
authorChristopher R. Hertel <crh@samba.org>1998-05-21 17:14:20 +0000
committerChristopher R. Hertel <crh@samba.org>1998-05-21 17:14:20 +0000
commit05fcc678729999f249b97460a579bdc218028a47 (patch)
tree0ce33d4ce790c539f04e6d4e5316612c38f1837c /source/ubiqx/ubi_Cache.c
parented0afe1e186ce53046e70d8a92103d4f59a2eed2 (diff)
downloadsamba-05fcc678729999f249b97460a579bdc218028a47.tar.gz
samba-05fcc678729999f249b97460a579bdc218028a47.tar.xz
samba-05fcc678729999f249b97460a579bdc218028a47.zip
Along the lines that Andrew suggested, I added a header called ubi_null.h.
This header tries four different locations for a definition of NULL. If NULL still hasn't been found, it defaults to ((void *)0). All of the includes can be, essentially, overridden by defining NULL on the command line, as in -DNULL=((void *)0). I have faith that this will avoid the problem of NULL being in different places on different systems. If there is a system out there that doesn't define NULL in any of the headers I've included, then let me know *where* it's defined and I'll add another header. Chris -)-----
Diffstat (limited to 'source/ubiqx/ubi_Cache.c')
-rw-r--r--source/ubiqx/ubi_Cache.c17
1 files changed, 14 insertions, 3 deletions
diff --git a/source/ubiqx/ubi_Cache.c b/source/ubiqx/ubi_Cache.c
index 290f7593e75..af2fe7b78d8 100644
--- a/source/ubiqx/ubi_Cache.c
+++ b/source/ubiqx/ubi_Cache.c
@@ -90,20 +90,31 @@
*
* -------------------------------------------------------------------------- **
*
- * Log: ubi_Cache.c,v
+ * Log: ubi_Cache.c,v
+ * Revision 0.1 1998/05/20 04:36:02 crh
+ * The C file now includes ubi_null.h. See ubi_null.h for more info.
+ *
* Revision 0.0 1997/12/18 06:24:33 crh
* Initial Revision.
*
* ========================================================================== **
*/
-#include "../includes.h"
-#include "ubi_Cache.h" /* Header for *this* module. */
+#include "ubi_null.h" /* ubiqx NULL source. */
+#include "ubi_Cache.h" /* Header for *this* module. */
/* -------------------------------------------------------------------------- **
* Static data...
*/
+/* commented out until I make use of it...
+static char ModuleID[] =
+"ubi_Cache\n\
+\tRevision: 0.1 \n\
+\tDate: 1998/05/20 04:36:02 \n\
+\tAuthor: crh \n";
+*/
+
/* -------------------------------------------------------------------------- **
* Internal functions...
*/