From c5de880c409224889c30837b76fb2fdaf31c02e0 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 21 Oct 2009 22:18:32 +1100 Subject: s4-ldb: ldb_oom() for modules --- source4/lib/ldb/include/ldb_module.h | 1 + 1 file changed, 1 insertion(+) (limited to 'source4') diff --git a/source4/lib/ldb/include/ldb_module.h b/source4/lib/ldb/include/ldb_module.h index 6061c4d240..977d485ada 100644 --- a/source4/lib/ldb/include/ldb_module.h +++ b/source4/lib/ldb/include/ldb_module.h @@ -68,6 +68,7 @@ void ldb_debug_add(struct ldb_context *ldb, const char *fmt, ...) PRINTF_ATTRIBU void ldb_debug_end(struct ldb_context *ldb, enum ldb_debug_level level); #define ldb_oom(ldb) ldb_debug_set(ldb, LDB_DEBUG_FATAL, "ldb out of memory at %s:%d\n", __FILE__, __LINE__) +#define ldb_module_oom(module) ldb_oom(ldb_module_get_ctx(module)) /* The following definitions come from lib/ldb/common/ldb.c */ -- cgit