summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2006-08-18 12:27:14 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:16:16 -0500
commit2faae939cec11de4890c2be24197619ea0e33637 (patch)
treefa040c1129e09c1443fc158a28555122b65df45d
parent49b335c756d22d7f6acfa32a07fa291e04b49a87 (diff)
downloadsamba-2faae939cec11de4890c2be24197619ea0e33637.tar.gz
samba-2faae939cec11de4890c2be24197619ea0e33637.tar.bz2
samba-2faae939cec11de4890c2be24197619ea0e33637.zip
r17601: Fix declaration after statement.
Andrew Bartlett (This used to be commit 05c276568a6c42c9ceb686a390c4fd279d4a5bb6)
-rw-r--r--source4/lib/ldb/tools/ad2oLschema.c5
1 files changed, 2 insertions, 3 deletions
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);