From 5540712156872cc55ea7502d836553a59a812033 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 24 Sep 2005 02:39:09 +0000 Subject: r10461: fixed tdb build on systems without stdint.h (This used to be commit 83168c7e76c7e3adcdb0eec1611827d4db09f858) --- source4/lib/tdb/common/open.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source4/lib/tdb/common/open.c') diff --git a/source4/lib/tdb/common/open.c b/source4/lib/tdb/common/open.c index 117152d4d9..7ebc067175 100644 --- a/source4/lib/tdb/common/open.c +++ b/source4/lib/tdb/common/open.c @@ -136,7 +136,7 @@ struct tdb_context *tdb_open_ex(const char *name, int hash_size, int tdb_flags, struct tdb_context *tdb; struct stat st; int rev = 0, locked = 0; - uint8_t *vp; + unsigned char *vp; u32 vertest; if (!(tdb = calloc(1, sizeof *tdb))) { @@ -222,7 +222,7 @@ struct tdb_context *tdb_open_ex(const char *name, int hash_size, int tdb_flags, } rev = (tdb->flags & TDB_CONVERT); } - vp = (uint8_t *)&tdb->header.version; + vp = (unsigned char *)&tdb->header.version; vertest = (((u32)vp[0]) << 24) | (((u32)vp[1]) << 16) | (((u32)vp[2]) << 8) | (u32)vp[3]; tdb->flags |= (vertest==TDB_VERSION) ? TDB_BIGENDIAN : 0; -- cgit