X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Ftdb2%2Ftools%2Ftdbtool.c;h=a00ebb904b9ac37b13e7f086ccc38e8409dc4199;hp=3ae7866d2c63c6137bd7cb1f59ac64bc35cbd761;hb=d5bb8e8d1c6731a3db234393c8d196b3b50084f2;hpb=7a0402de904de11843f9eb8a4bf8469206426c34 diff --git a/ccan/tdb2/tools/tdbtool.c b/ccan/tdb2/tools/tdbtool.c index 3ae7866d..a00ebb90 100644 --- a/ccan/tdb2/tools/tdbtool.c +++ b/ccan/tdb2/tools/tdbtool.c @@ -21,7 +21,6 @@ */ #include -#include #include #include #include @@ -207,8 +206,10 @@ static void help(void) " store key data : store a record (replace)\n" " show key : show a record by key\n" " delete key : delete a record by key\n" +#if 0 " list : print the database hash table and freelist\n" " free : print the database freelist\n" +#endif " check : check the integrity of an opened database\n" " speed : perform speed tests on the database\n" " ! command : execute system command\n" @@ -242,12 +243,6 @@ static void create_tdb(const char *tdbname) } } -static uint64_t jenkins_hash(const void *key, size_t len, uint64_t seed, - void *priv) -{ - return hash_any(key, len, seed); -} - static void open_tdb(const char *tdbname) { union tdb_attribute log_attr;