tdb2 doesn't expost tdb_jenkins_hash; go straight to the source in
ccan/hash.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
#include "system/filesys.h"
#include "include/ntioctl.h"
#include "smbd/proto.h"
-#include <tdb.h>
+#include <ccan/hash/hash.h>
#include "util_tdb.h"
#define GMT_NAME_LEN 24 /* length of a @GMT- name */
without significant VFS changes
*/
uint32_t shash;
- TDB_DATA data = string_tdb_data(fname);
- shash = tdb_jenkins_hash(&data) & 0xFF000000;
+ shash = hash(fname, strlen(fname), 0) & 0xFF000000;
if (shash == 0) {
shash = 1;
}