Skip to content
Snippets Groups Projects
Commit bcffeb18 authored by jce's avatar jce
Browse files

changed to reflect changes in api.

parent a8dab3c7
No related branches found
No related tags found
No related merge requests found
...@@ -22,6 +22,6 @@ main (int argc, char *argv[]) ...@@ -22,6 +22,6 @@ main (int argc, char *argv[])
slurm_print_job_info_msg ( stdout, job_info_msg_ptr ) ; slurm_print_job_info_msg ( stdout, job_info_msg_ptr ) ;
slurm_free_job_info ( job_info_msg_ptr ) ; slurm_free_job_info_msg ( job_info_msg_ptr ) ;
return (0); return (0);
} }
...@@ -13,7 +13,7 @@ main (int argc, char *argv[]) ...@@ -13,7 +13,7 @@ main (int argc, char *argv[])
static time_t last_update_time = (time_t) NULL; static time_t last_update_time = (time_t) NULL;
int error_code, i; int error_code, i;
node_info_msg_t * node_info_msg_ptr = NULL; node_info_msg_t * node_info_msg_ptr = NULL;
node_table_t * node_ptr ; node_info_t * node_ptr ;
error_code = slurm_load_node (last_update_time, &node_info_msg_ptr); error_code = slurm_load_node (last_update_time, &node_info_msg_ptr);
if (error_code) { if (error_code) {
...@@ -37,6 +37,6 @@ main (int argc, char *argv[]) ...@@ -37,6 +37,6 @@ main (int argc, char *argv[])
printf ("skipping...\n"); printf ("skipping...\n");
} }
slurm_free_node_info ( node_info_msg_ptr ) ; slurm_free_node_info_msg ( node_info_msg_ptr ) ;
return (0); return (0);
} }
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
int int
main (int argc, char *argv[]) main (int argc, char *argv[])
{ {
int error_code, i, count; /* int error_code, i, count;
job_desc_msg_t job_mesg; job_desc_msg_t job_mesg;
submit_response_msg_t *resp_msg; submit_response_msg_t *resp_msg;
char *env[2]; char *env[2];
...@@ -48,7 +48,7 @@ main (int argc, char *argv[]) ...@@ -48,7 +48,7 @@ main (int argc, char *argv[])
} }
else else
printf ("job %u submitted\n", resp_msg->job_id); printf ("job %u submitted\n", resp_msg->job_id);
slurm_free_submit_response_response_msg ( resp_msg ); slurm_free_submit_response_msg ( resp_msg );
if (argc > 1) if (argc > 1)
count = atoi (argv[1]); count = atoi (argv[1]);
...@@ -80,8 +80,8 @@ main (int argc, char *argv[]) ...@@ -80,8 +80,8 @@ main (int argc, char *argv[])
else { else {
printf ("job %u submitted\n", resp_msg->job_id); printf ("job %u submitted\n", resp_msg->job_id);
} }
slurm_free_submit_response_response_msg ( resp_msg ); slurm_free_submit_response_msg ( resp_msg );
} }
exit (error_code); exit (error_code);
*/
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment