From b0c2210c4594494edf082c5891a0024351414482 Mon Sep 17 00:00:00 2001
From: Phil Eckert <eckert2@llnl.gov>
Date: Tue, 22 Mar 2011 20:47:35 +0000
Subject: [PATCH] Bring the coding example up to date.

---
 doc/man/man3/slurm_free_ctl_conf.3 | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/doc/man/man3/slurm_free_ctl_conf.3 b/doc/man/man3/slurm_free_ctl_conf.3
index 6d1ec7acb91..4d2ef4ab15a 100644
--- a/doc/man/man3/slurm_free_ctl_conf.3
+++ b/doc/man/man3/slurm_free_ctl_conf.3
@@ -82,6 +82,8 @@ SLURM controller.
 .LP
 #include <stdio.h>
 .br
+#include <stdlib.h>
+.br
 #include <slurm/slurm.h>
 .br
 #include <slurm/slurm_errno.h>
@@ -92,7 +94,7 @@ int main (int argc, char *argv[])
 .br
 	slurm_ctl_conf_t * conf_info_msg_ptr = NULL;
 .br
-	long version = slurm_api_version;
+	long version = slurm_api_version();
 .LP
 	/* We can use the SLURM version number to determine how
 .br
@@ -128,11 +130,11 @@ int main (int argc, char *argv[])
 .br
 	printf ("control_machine = %s\\n",
 .br
-	        slurm_ctl_conf_ptr\->control_machine);
+	        conf_info_msg_ptr\->control_machine);
 .br
-	printf ("server_timeout = %u\\n",
+	printf ("first_job_id = %u\\n",
 .br
-	        slurm_ctl_conf_ptr\->server_timeout);
+	        conf_info_msg_ptr\->first_job_id);
 .LP
 	slurm_free_ctl_conf (conf_info_msg_ptr);
 .br
-- 
GitLab