diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2011-06-20 18:40:32 +0930 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2011-06-20 11:18:35 +0200 |
commit | a4993f647cfc5b8e0cf4405cc1d8815770837310 (patch) | |
tree | 13cefa491e51a3b757743e1d44772fdaffc205b6 /source3/smbd | |
parent | 58f7cda1bc6b7767c318a038bdb686f4e59e2e64 (diff) | |
download | samba-a4993f647cfc5b8e0cf4405cc1d8815770837310.tar.gz samba-a4993f647cfc5b8e0cf4405cc1d8815770837310.tar.bz2 samba-a4993f647cfc5b8e0cf4405cc1d8815770837310.zip |
ldb: replace 'struct TDB_DATA' with 'TDB_DATA'
The typedef is TDB2 compatible, the struct isn't.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/proto.h | 5 | ||||
-rw-r--r-- | source3/smbd/statcache.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/source3/smbd/proto.h b/source3/smbd/proto.h index 486ff33598..6e515278b4 100644 --- a/source3/smbd/proto.h +++ b/source3/smbd/proto.h @@ -1049,8 +1049,13 @@ bool stat_cache_lookup(connection_struct *conn, void send_stat_cache_delete_message(struct messaging_context *msg_ctx, const char *name); void stat_cache_delete(const char *name); +#if BUILD_TDB2 +struct tdb_data; +unsigned int fast_string_hash(struct tdb_data *key); +#else struct TDB_DATA; unsigned int fast_string_hash(struct TDB_DATA *key); +#endif bool reset_stat_cache( void ); /* The following definitions come from smbd/statvfs.c */ diff --git a/source3/smbd/statcache.c b/source3/smbd/statcache.c index e1597fdd58..b0904c9ff7 100644 --- a/source3/smbd/statcache.c +++ b/source3/smbd/statcache.c @@ -377,7 +377,7 @@ void stat_cache_delete(const char *name) JRA. Use a djb-algorithm hash for speed. ***************************************************************/ -unsigned int fast_string_hash(struct TDB_DATA *key) +unsigned int fast_string_hash(TDB_DATA *key) { unsigned int n = 0; const char *p; |