messaging_dgm: messaging_dgm_lockfile_create does not use tmp_ctx anymore
authorVolker Lendecke <vl@samba.org>
Wed, 10 Sep 2014 08:00:05 +0000 (10:00 +0200)
committerStefan Metzmacher <metze@samba.org>
Sun, 14 Sep 2014 12:04:06 +0000 (14:04 +0200)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source3/lib/messages_dgm.c

index 07936f8f1b234dd4a5800c5618f499c3c64bc37d..a77bda97e7c659e12f60fc1637e4fb1aaccdda2f 100644 (file)
@@ -70,8 +70,7 @@ static int messaging_dgm_lockfile_name(struct sun_path_buf *buf,
 
 static int messaging_dgm_context_destructor(struct messaging_dgm_context *c);
 
-static int messaging_dgm_lockfile_create(TALLOC_CTX *tmp_ctx,
-                                        const char *cache_dir,
+static int messaging_dgm_lockfile_create(const char *cache_dir,
                                         uid_t dir_owner, pid_t pid,
                                         int *plockfile_fd, uint64_t unique)
 {
@@ -222,7 +221,7 @@ int messaging_dgm_init(TALLOC_CTX *mem_ctx,
                return ENAMETOOLONG;
        }
 
-       ret = messaging_dgm_lockfile_create(ctx, cache_dir, dir_owner, pid.pid,
+       ret = messaging_dgm_lockfile_create(cache_dir, dir_owner, pid.pid,
                                            &ctx->lockfile_fd, pid.unique_id);
        if (ret != 0) {
                DEBUG(1, ("%s: messaging_dgm_create_lockfile failed: %s\n",