Author: mkhl
Date: 2006-07-15 09:07:24 +0000 (Sat, 15 Jul 2006)
New Revision: 17052

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=17052

Log:
Don't declare variables in the middle of a function.

Martin

Modified:
   branches/SOC/mkhl/ldb-map/modules/ldb_map.c


Changeset:
Modified: branches/SOC/mkhl/ldb-map/modules/ldb_map.c
===================================================================
--- branches/SOC/mkhl/ldb-map/modules/ldb_map.c 2006-07-15 09:04:28 UTC (rev 
17051)
+++ branches/SOC/mkhl/ldb-map/modules/ldb_map.c 2006-07-15 09:07:24 UTC (rev 
17052)
@@ -2116,6 +2116,7 @@
        struct ldb_async_handle *h;
        struct map_async_context *ac;
        struct ldb_message *local, *remote;
+       const char *dn;
 
        /* do not manipulate our control entries */
        if (ldb_dn_is_special(msg->dn))
@@ -2188,7 +2189,7 @@
                return map_add_do_local(h);
 
        /* store the remote DN in 'IS_MAPPED' */
-       const char *dn = ldb_dn_linearize(local, remote->dn);
+       dn = ldb_dn_linearize(local, remote->dn);
        if (ldb_msg_add_string(local, IS_MAPPED, dn) != 0)
                goto failed;
 

Reply via email to