summaryrefslogtreecommitdiff
path: root/source4/lib
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2007-12-24 01:28:22 -0600
committerStefan Metzmacher <metze@samba.org>2007-12-24 01:51:07 -0600
commitc13ae707313c5bf9819a75c1699d099565d2494d (patch)
tree9bc499e9ec34156cb7d3f58601fb41b7a92c5f61 /source4/lib
parentac267899b49567b677289a23e83c09d19b1bdb3b (diff)
downloadsamba-c13ae707313c5bf9819a75c1699d099565d2494d.tar.gz
samba-c13ae707313c5bf9819a75c1699d099565d2494d.tar.bz2
samba-c13ae707313c5bf9819a75c1699d099565d2494d.zip
r26580: Include sentinel in build.h, in case the list is empty.
(This used to be commit f1997dabed584bdc864c4b7235c29603c312ef46)
Diffstat (limited to 'source4/lib')
-rw-r--r--source4/lib/events/events.c2
-rw-r--r--source4/lib/ldb/common/ldb_modules.c5
2 files changed, 4 insertions, 3 deletions
diff --git a/source4/lib/events/events.c b/source4/lib/events/events.c
index db7c3a5066..245be14326 100644
--- a/source4/lib/events/events.c
+++ b/source4/lib/events/events.c
@@ -102,7 +102,7 @@ void event_set_default_backend(const char *backend)
static void event_backend_init(void)
{
#if _SAMBA_BUILD_
- init_module_fn static_init[] = { STATIC_LIBEVENTS_MODULES, NULL };
+ init_module_fn static_init[] = { STATIC_LIBEVENTS_MODULES };
init_module_fn *shared_init;
if (event_backends) return;
shared_init = load_samba_modules(NULL, global_loadparm, "events");
diff --git a/source4/lib/ldb/common/ldb_modules.c b/source4/lib/ldb/common/ldb_modules.c
index 4e70b177bc..18070bdb86 100644
--- a/source4/lib/ldb/common/ldb_modules.c
+++ b/source4/lib/ldb/common/ldb_modules.c
@@ -160,12 +160,13 @@ static const struct ldb_module_ops *ldb_find_module_ops(const char *name)
ldb_rdn_name_init, \
ldb_paged_results_init, \
ldb_sort_init, \
- ldb_asq_init
+ ldb_asq_init, \
+ NULL
#endif
int ldb_global_init(void)
{
- int (*static_init_fns[])(void) = { STATIC_LIBLDB_MODULES, NULL };
+ int (*static_init_fns[])(void) = { STATIC_LIBLDB_MODULES };
static int initialized = 0;
int ret = 0, i;