dsdb: Use customary variable names for audit event contexts
authorAndrew Bartlett <abartlet@samba.org>
Mon, 25 Jun 2018 04:23:00 +0000 (16:23 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 26 Jun 2018 01:27:20 +0000 (03:27 +0200)
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
source4/dsdb/samdb/ldb_modules/audit_log.c
source4/dsdb/samdb/ldb_modules/group_audit.c

index 6ad39270d2af23a92aaf4e729e6e42b97bb610a9..9d51ce52b1928da1d2cc7aa8b4134b422db89a68 100644 (file)
@@ -1550,7 +1550,7 @@ static int log_init(struct ldb_module *module)
        struct loadparm_context *lp_ctx
                = talloc_get_type_abort(ldb_get_opaque(ldb, "loadparm"),
                                        struct loadparm_context);
-       struct tevent_context *ec = ldb_get_event_context(ldb);
+       struct tevent_context *ev = ldb_get_event_context(ldb);
        bool sdb_events = false;
        bool pwd_events = false;
 
@@ -1568,7 +1568,7 @@ static int log_init(struct ldb_module *module)
                context->send_password_events = pwd_events;
                context->msg_ctx = imessaging_client_init(context,
                                                          lp_ctx,
-                                                         ec);
+                                                         ev);
        }
 
        ldb_module_set_private(module, context);
index 31819a3a25836fe7283e279780a419c32c016de7..47929aa87649e643465636b582d192b0b9326731 100644 (file)
@@ -1332,7 +1332,7 @@ static int group_init(struct ldb_module *module)
                = talloc_get_type_abort(
                        ldb_get_opaque(ldb, "loadparm"),
                        struct loadparm_context);
-       struct tevent_context *ec = ldb_get_event_context(ldb);
+       struct tevent_context *ev = ldb_get_event_context(ldb);
 
        context = talloc_zero(module, struct audit_context);
        if (context == NULL) {
@@ -1343,7 +1343,7 @@ static int group_init(struct ldb_module *module)
                context->send_events = true;
                context->msg_ctx = imessaging_client_init(context,
                                                          lp_ctx,
-                                                         ec);
+                                                         ev);
        }
 
        ldb_module_set_private(module, context);