From: Rusty Russell Date: Thu, 17 Mar 2011 11:42:21 +0000 (+1030) Subject: tdb2: remove tdb_null X-Git-Url: https://git.ozlabs.org/?p=ccan;a=commitdiff_plain;h=374eb28b1e95cc3f9a3ace618f2a6623881ef5a1 tdb2: remove tdb_null We don't need this now, since we use explicit error numbers. --- diff --git a/ccan/tdb2/tdb.c b/ccan/tdb2/tdb.c index d3d12250..6a2c3828 100644 --- a/ccan/tdb2/tdb.c +++ b/ccan/tdb2/tdb.c @@ -2,9 +2,6 @@ #include #include -/* 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, diff --git a/ccan/tdb2/tdb2.h b/ccan/tdb2/tdb2.h index 811d9120..d9e2d9ec 100644 --- a/ccan/tdb2/tdb2.h +++ b/ccan/tdb2/tdb2.h @@ -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