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)
committerVolker Lendecke <vl@samba.org>
Tue, 1 Oct 2013 12:02:32 +0000 (12:02 +0000)
Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
source3/winbindd/idmap_autorid_tdb.c

index 1673f196741a19536c018cb2cb10a91261edb8d5..64c108520cfea9e583d94b74af47408e53679b04 100644 (file)
@@ -262,19 +262,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;
        }