r17601: Fix declaration after statement.
authorAndrew Bartlett <abartlet@samba.org>
Fri, 18 Aug 2006 12:27:14 +0000 (12:27 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:16:16 +0000 (14:16 -0500)
Andrew Bartlett

source/lib/ldb/tools/ad2oLschema.c

index fba2966a2e6690ab0e0cd240f7fd077e7dea4259..ceff7aef6facb567f36f8807ccc29d473edf1ade 100644 (file)
@@ -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);