From c2effc856225616a9e6cb9c608e2b30247bd0856 Mon Sep 17 00:00:00 2001
From: Moe Jette <jette1@llnl.gov>
Date: Tue, 7 Mar 2006 18:54:59 +0000
Subject: [PATCH] Describe set_span() and not caller must xfree returned array.

---
 src/common/slurm_protocol_api.h | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/common/slurm_protocol_api.h b/src/common/slurm_protocol_api.h
index 557948d9ec5..4e126fbf017 100644
--- a/src/common/slurm_protocol_api.h
+++ b/src/common/slurm_protocol_api.h
@@ -578,7 +578,12 @@ int slurm_send_only_controller_msg(slurm_msg_t * request_msg);
 int slurm_send_only_node_msg(slurm_msg_t * request_msg);
 
 /* Slurm message functions */
-int *set_span(int total);
+
+/* set_span
+ * build an array indicating how message fanout should occur
+ * NODE: Returned array MUST be release by caller using xfree */
+extern int *set_span(int total);
+
 void slurm_free_msg(slurm_msg_t * msg);
 void slurm_free_cred(void *cred);
 int convert_to_kilo(int number, char *tmp);
-- 
GitLab