From c1dbbb7562b9ae836a9dd718909d2419e67e2f82 Mon Sep 17 00:00:00 2001
From: Moe Jette <jette1@llnl.gov>
Date: Wed, 10 May 2006 17:16:42 +0000
Subject: [PATCH] Change format of function address passed to list_create() in
 some places for consistency across slurm

---
 src/slurmctld/agent.c         | 6 +++---
 src/slurmctld/controller.c    | 2 +-
 src/slurmctld/job_mgr.c       | 2 +-
 src/slurmctld/partition_mgr.c | 2 +-
 src/slurmd/common/stepd_api.c | 2 +-
 src/srun/opt.c                | 2 +-
 6 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/src/slurmctld/agent.c b/src/slurmctld/agent.c
index 26e08bea465..fc38b9a7596 100644
--- a/src/slurmctld/agent.c
+++ b/src/slurmctld/agent.c
@@ -1026,7 +1026,7 @@ static void _queue_agent_retry(agent_info_t * agent_info_ptr, int count)
 	queued_req_ptr->last_attempt  = time(NULL);
 	slurm_mutex_lock(&retry_mutex);
 	if (retry_list == NULL) {
-		retry_list = list_create(&_list_delete_retry);
+		retry_list = list_create(_list_delete_retry);
 		if (retry_list == NULL)
 			fatal("list_create failed");
 	}
@@ -1137,7 +1137,7 @@ void agent_queue_request(agent_arg_t *agent_arg_ptr)
 
 	slurm_mutex_lock(&retry_mutex);
 	if (retry_list == NULL) {
-		retry_list = list_create(&_list_delete_retry);
+		retry_list = list_create(_list_delete_retry);
 		if (retry_list == NULL)
 			fatal("list_create failed");
 	}
@@ -1321,7 +1321,7 @@ extern void mail_job_info (struct job_record *job_ptr, uint16_t mail_type)
 
 	slurm_mutex_lock(&mail_mutex);
 	if (!mail_list) {
-		mail_list = list_create(&_mail_free);
+		mail_list = list_create(_mail_free);
 		if (!mail_list)
 			fatal("list_create failed");
 	}
diff --git a/src/slurmctld/controller.c b/src/slurmctld/controller.c
index 22ba49ab69e..896f4225256 100644
--- a/src/slurmctld/controller.c
+++ b/src/slurmctld/controller.c
@@ -111,7 +111,7 @@
  *    MEM_LEAK_TEST to 0 afterwards for best system response (non-seamless 
  *    backup controller use).
 \**************************************************************************/
-#define MEM_LEAK_TEST     0	/* Running memory leak test if set */
+#define MEM_LEAK_TEST     1	/* Running memory leak test if set */
 
 
 /* Log to stderr and syslog until becomes a daemon */
diff --git a/src/slurmctld/job_mgr.c b/src/slurmctld/job_mgr.c
index 003d025d127..5de83978758 100644
--- a/src/slurmctld/job_mgr.c
+++ b/src/slurmctld/job_mgr.c
@@ -1287,7 +1287,7 @@ int init_job_conf(void)
 {
 	if (job_list == NULL) {
 		job_count = 0;
-		job_list = list_create(&_list_delete_job);
+		job_list = list_create(_list_delete_job);
 		if (job_list == NULL)
 			fatal ("Memory allocation failure");
 	}
diff --git a/src/slurmctld/partition_mgr.c b/src/slurmctld/partition_mgr.c
index 9a9a3a31d35..63877bccaaa 100644
--- a/src/slurmctld/partition_mgr.c
+++ b/src/slurmctld/partition_mgr.c
@@ -535,7 +535,7 @@ int init_part_conf(void)
 	if (part_list)		/* delete defunct partitions */
 		(void) _delete_part_record(NULL);
 	else
-		part_list = list_create(&_list_delete_part);
+		part_list = list_create(_list_delete_part);
 
 	if (part_list == NULL)
 		fatal ("memory allocation failure");
diff --git a/src/slurmd/common/stepd_api.c b/src/slurmd/common/stepd_api.c
index 008aa10767c..2c7a7bf7232 100644
--- a/src/slurmd/common/stepd_api.c
+++ b/src/slurmd/common/stepd_api.c
@@ -403,7 +403,7 @@ stepd_available(const char *directory, const char *nodename)
 	regex_t re;
 	struct stat stat_buf;
 
-	l = list_create((ListDelF) &_free_step_loc_t);
+	l = list_create((ListDelF) _free_step_loc_t);
 	_sockname_regex_init(&re, nodename);
 
 	/*
diff --git a/src/srun/opt.c b/src/srun/opt.c
index 781c32a1923..4be63d276ab 100644
--- a/src/srun/opt.c
+++ b/src/srun/opt.c
@@ -1794,7 +1794,7 @@ _freeF(void *data)
 static List
 _create_path_list(void)
 {
-	List l = list_create(&_freeF);
+	List l = list_create(_freeF);
 	char *path = xstrdup(getenv("PATH"));
 	char *c, *lc;
 
-- 
GitLab