]> git.ozlabs.org Git - ccan/commitdiff
tdb2: remove tdb_null
authorRusty Russell <rusty@rustcorp.com.au>
Thu, 17 Mar 2011 11:42:21 +0000 (22:12 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 17 Mar 2011 11:42:21 +0000 (22:12 +1030)
We don't need this now, since we use explicit error numbers.

ccan/tdb2/tdb.c
ccan/tdb2/tdb2.h

index d3d12250cea8b21f4bf76431957f660796d83dad..6a2c3828a6e47defd2a26563ce1fa4b26f8bee1b 100644 (file)
@@ -2,9 +2,6 @@
 #include <ccan/asprintf/asprintf.h>
 #include <stdarg.h>
 
-/* The null return. */
-struct tdb_data tdb_null = { .dptr = NULL, .dsize = 0 };
-
 static enum TDB_ERROR update_rec_hdr(struct tdb_context *tdb,
                                     tdb_off_t off,
                                     tdb_len_t keylen,
index 811d9120458d3b720c670be0179a48db437c5533..d9e2d9ecb520acd4e97468676c45051e109b4dcf 100644 (file)
@@ -600,11 +600,6 @@ union tdb_attribute {
        struct tdb_attribute_stats stats;
 };
 
-/**
- * tdb_null - a convenient value for errors.
- */
-extern struct tdb_data tdb_null;
-
 #ifdef  __cplusplus
 }
 #endif