tdb: remove unused variable in tdb_new_database().
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 16 Aug 2010 00:42:02 +0000 (10:12 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 16 Aug 2010 00:50:53 +0000 (10:20 +0930)
(Imported from SAMBA 2eab1d7fdcb54f9ec27431ca4858eb64cb1bd835)

lib/tdb/common/open.c

index 3ff6b17c03493980eefe086d57af87badb6a7849..7687ff6e32a1c38bf76d9cd988dd23134bd684b6 100644 (file)
@@ -51,7 +51,6 @@ static int tdb_new_database(struct tdb_context *tdb, int hash_size)
        struct tdb_header *newdb;
        size_t size;
        int ret = -1;
-       ssize_t written;
 
        /* We make it up in memory, then write it out if not internal */
        size = sizeof(struct tdb_header) + (hash_size+1)*sizeof(tdb_off_t);