]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/syncrepl.c
Cleanup ISO C compatibility for recent commits
[openldap] / servers / slapd / syncrepl.c
index 204f064e97b4540a896794f7c6ed1ee74ddfd07b..0c4bb5b9787cb3b075e79e6d5dace216cc25810a 100644 (file)
@@ -2077,8 +2077,12 @@ syncrepl_op_modify( Operation *op, SlapReply *rs )
                Modifications *ml;
                int size, rc;
                SlapReply rs1 = {0};
-               resolve_ctxt rx = { si, newlist };
-               slap_callback cb = { NULL, syncrepl_resolve_cb, NULL, &rx };
+               resolve_ctxt rx;
+               slap_callback cb = { NULL, syncrepl_resolve_cb, NULL, NULL };
+
+               rx.rx_si = si;
+               rx.rx_mods = newlist;
+               cb.sc_private = ℞
 
                op2.o_tag = LDAP_REQ_SEARCH;
                op2.ors_scope = LDAP_SCOPE_SUBTREE;