diff options
author | Andrew Bartlett <abartlet@samba.org> | 2006-08-18 12:27:14 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:16:16 -0500 |
commit | 2faae939cec11de4890c2be24197619ea0e33637 (patch) | |
tree | fa040c1129e09c1443fc158a28555122b65df45d /source4/lib/ldb/tools | |
parent | 49b335c756d22d7f6acfa32a07fa291e04b49a87 (diff) | |
download | samba-2faae939cec11de4890c2be24197619ea0e33637.tar.gz samba-2faae939cec11de4890c2be24197619ea0e33637.tar.bz2 samba-2faae939cec11de4890c2be24197619ea0e33637.zip |
r17601: Fix declaration after statement.
Andrew Bartlett
(This used to be commit 05c276568a6c42c9ceb686a390c4fd279d4a5bb6)
Diffstat (limited to 'source4/lib/ldb/tools')
-rw-r--r-- | source4/lib/ldb/tools/ad2oLschema.c | 5 |
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); |