diff options
author | Andrew Tridgell <tridge@samba.org> | 2005-09-24 02:39:09 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:38:48 -0500 |
commit | 5540712156872cc55ea7502d836553a59a812033 (patch) | |
tree | 7520dce1b5a5c3855af7d5243e932b3ee19de763 /source4 | |
parent | c0e6586405d2ceb8af9b4252ced83dea931ab8aa (diff) | |
download | samba-5540712156872cc55ea7502d836553a59a812033.tar.gz samba-5540712156872cc55ea7502d836553a59a812033.tar.bz2 samba-5540712156872cc55ea7502d836553a59a812033.zip |
r10461: fixed tdb build on systems without stdint.h
(This used to be commit 83168c7e76c7e3adcdb0eec1611827d4db09f858)
Diffstat (limited to 'source4')
-rw-r--r-- | source4/lib/tdb/common/open.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |