idmap_autorid: rename TALLOC_CTX argument of idmap_autorid_loadconfig() to mem_ctx
authorMichael Adam <obnox@samba.org>
Tue, 10 Sep 2013 11:43:15 +0000 (13:43 +0200)
committerMichael Adam <obnox@samba.org>
Tue, 1 Oct 2013 08:49:11 +0000 (10:49 +0200)
Signed-off-by: Michael Adam <obnox@samba.org>
source3/winbindd/idmap_autorid_tdb.c

index dbb0265f194d3d367eef79d16692c484cc67a139..d78bcd1ea3d4ece27e7b73bccc91cb9a6073d2f1 100644 (file)
@@ -273,19 +273,19 @@ NTSTATUS idmap_autorid_getconfigstr(struct db_context *db, TALLOC_CTX *mem_ctx,
 }
 
 struct autorid_global_config *idmap_autorid_loadconfig(struct db_context *db,
-                                                      TALLOC_CTX *ctx)
+                                                      TALLOC_CTX *mem_ctx)
 {
        struct autorid_global_config *cfg;
        unsigned long minvalue, rangesize, maxranges;
        NTSTATUS status;
        char *configstr = NULL;
 
-       status = idmap_autorid_getconfigstr(db, ctx, &configstr);
+       status = idmap_autorid_getconfigstr(db, mem_ctx, &configstr);
        if (!NT_STATUS_IS_OK(status)) {
                return NULL;
        }
 
-       cfg = talloc_zero(ctx, struct autorid_global_config);
+       cfg = talloc_zero(mem_ctx, struct autorid_global_config);
        if (!cfg) {
                return NULL;
        }