From 374eb28b1e95cc3f9a3ace618f2a6623881ef5a1 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Thu, 17 Mar 2011 22:12:21 +1030 Subject: [PATCH] tdb2: remove tdb_null We don't need this now, since we use explicit error numbers. --- ccan/tdb2/tdb.c | 3 --- ccan/tdb2/tdb2.h | 5 ----- 2 files changed, 8 deletions(-) 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 -- 2.39.2