summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2009-12-23 10:33:26 -0500
committerSimo Sorce <idra@samba.org>2009-12-23 10:33:26 -0500
commit7e8b042b07f374fae9f57feb7f16c3bcd5abf20c (patch)
tree576a4ba5192525aed378c9366ba6e5cbd8418703 /source4
parent4cc0bb7d04a0f83febec9904eaeca126b6f53ae3 (diff)
downloadsamba-7e8b042b07f374fae9f57feb7f16c3bcd5abf20c.tar.gz
samba-7e8b042b07f374fae9f57feb7f16c3bcd5abf20c.tar.bz2
samba-7e8b042b07f374fae9f57feb7f16c3bcd5abf20c.zip
s4:ldb Fix declaration in the middle of the code
Diffstat (limited to 'source4')
-rw-r--r--source4/lib/ldb/tools/ldbdel.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source4/lib/ldb/tools/ldbdel.c b/source4/lib/ldb/tools/ldbdel.c
index 4180afb99c..4238f35067 100644
--- a/source4/lib/ldb/tools/ldbdel.c
+++ b/source4/lib/ldb/tools/ldbdel.c
@@ -84,9 +84,10 @@ static void usage(void)
int main(int argc, const char **argv)
{
+ struct ldb_control **req_ctrls;
+ struct ldb_cmdline *options;
struct ldb_context *ldb;
int ret = 0, i;
- struct ldb_cmdline *options;
ldb = ldb_init(NULL, NULL);
@@ -96,7 +97,8 @@ int main(int argc, const char **argv)
usage();
exit(1);
}
- struct ldb_control **req_ctrls = ldb_parse_control_strings(ldb, ldb, (const char **)options->controls);
+
+ req_ctrls = ldb_parse_control_strings(ldb, ldb, (const char **)options->controls);
if (options->controls != NULL && req_ctrls== NULL) {
printf("parsing controls failed: %s\n", ldb_errstring(ldb));
return -1;