From 2faae939cec11de4890c2be24197619ea0e33637 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Fri, 18 Aug 2006 12:27:14 +0000 Subject: r17601: Fix declaration after statement. Andrew Bartlett (This used to be commit 05c276568a6c42c9ceb686a390c4fd279d4a5bb6) --- source4/lib/ldb/tools/ad2oLschema.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'source4') diff --git a/source4/lib/ldb/tools/ad2oLschema.c b/source4/lib/ldb/tools/ad2oLschema.c index fba2966a2e..ceff7aef6f 100644 --- a/source4/lib/ldb/tools/ad2oLschema.c +++ b/source4/lib/ldb/tools/ad2oLschema.c @@ -255,7 +255,6 @@ static struct schema_conv process_convert(struct ldb_context *ldb, enum convert_ } *oid_map = NULL; int num_maps = 0; struct ldb_result *attrs_res, *objectclasses_res; - struct ldb_message *msg; struct ldb_dn *schemadn; struct schema_conv ret; @@ -314,7 +313,7 @@ static struct schema_conv process_convert(struct ldb_context *ldb, enum convert_ } for (i=0; i < attrs_res->count; i++) { - msg = attrs_res->msgs[i]; + struct ldb_message *msg = attrs_res->msgs[i]; const char *name = ldb_msg_find_attr_as_string(msg, "lDAPDisplayName", NULL); const char *description = ldb_msg_find_attr_as_string(msg, "description", NULL); @@ -410,7 +409,7 @@ static struct schema_conv process_convert(struct ldb_context *ldb, enum convert_ } for (i=0; i < objectclasses_res->count; i++) { - msg = objectclasses_res->msgs[i]; + struct ldb_message *msg = objectclasses_res->msgs[i]; const char *name = ldb_msg_find_attr_as_string(msg, "lDAPDisplayName", NULL); const char *description = ldb_msg_find_attr_as_string(msg, "description", NULL); const char *oid = ldb_msg_find_attr_as_string(msg, "governsID", NULL); -- cgit