From 6f2c4abadd6097d949b388cc4d9c4ebd77f0df10 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 1 Nov 2010 18:45:25 +1100 Subject: s4-ldb: convert existing ldb tools to use new command line hooks the usage() function needs to take a ldb context, as the popt_options is specific to the ldb context Pair-Programmed-With: Andrew Bartlett --- source4/lib/ldb/tools/ldbadd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source4/lib/ldb/tools/ldbadd.c') diff --git a/source4/lib/ldb/tools/ldbadd.c b/source4/lib/ldb/tools/ldbadd.c index 42470656fb..ab456f3d33 100644 --- a/source4/lib/ldb/tools/ldbadd.c +++ b/source4/lib/ldb/tools/ldbadd.c @@ -38,11 +38,11 @@ static unsigned int failures; static struct ldb_cmdline *options; -static void usage(void) +static void usage(struct ldb_context *ldb) { printf("Usage: ldbadd \n"); printf("Adds records to a ldb, reading ldif the specified list of files\n\n"); - ldb_cmdline_help("ldbadd", stdout); + ldb_cmdline_help(ldb, "ldbadd", stdout); exit(1); } -- cgit