summaryrefslogtreecommitdiff
path: root/source3/smbd/statcache.c
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-04-17 12:27:35 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:16:23 -0500
commit76e581b983989377d3ac3ae89b2b7d925aadc3f5 (patch)
tree0973275cef43fef24af3d07530f4464ec0702427 /source3/smbd/statcache.c
parent4f240462949ca7487b111adf7aef249f4c6f6e8d (diff)
downloadsamba-76e581b983989377d3ac3ae89b2b7d925aadc3f5.tar.gz
samba-76e581b983989377d3ac3ae89b2b7d925aadc3f5.tar.bz2
samba-76e581b983989377d3ac3ae89b2b7d925aadc3f5.zip
r15103: Okay, looking closer: Samba4 tdb not exporting u32 is a bug in samba4's
tdb. tdb_open_ex needs it. Can someone from samba4 tell me how this should be handled? Thanks, Volker (This used to be commit 0a2f1ed5e9012e07ef158666b68994d0961768b6)
Diffstat (limited to 'source3/smbd/statcache.c')
-rw-r--r--source3/smbd/statcache.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/smbd/statcache.c b/source3/smbd/statcache.c
index fe022017b5..548d7c4a48 100644
--- a/source3/smbd/statcache.c
+++ b/source3/smbd/statcache.c
@@ -291,12 +291,12 @@ BOOL stat_cache_lookup(connection_struct *conn, pstring name, pstring dirpath,
JRA. Use a djb-algorithm hash for speed.
***************************************************************/
-uint32 fast_string_hash(TDB_DATA *key)
+u32 fast_string_hash(TDB_DATA *key)
{
- uint32 n = 0;
+ u32 n = 0;
const char *p;
for (p = key->dptr; *p != '\0'; p++) {
- n = ((n << 5) + n) ^ (uint32)(*p);
+ n = ((n << 5) + n) ^ (u32)(*p);
}
return n;
}