From 469ecdf850cc836c2df24b24e2a70cefd93144a9 Mon Sep 17 00:00:00 2001 From: Moe Jette <jette1@llnl.gov> Date: Mon, 13 Mar 2006 23:27:29 +0000 Subject: [PATCH] Clean-up some sloppy type casting to eliminate build warnings. --- src/srun/srun_job.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/srun/srun_job.c b/src/srun/srun_job.c index df1925bf177..63e4e44039b 100644 --- a/src/srun/srun_job.c +++ b/src/srun/srun_job.c @@ -62,11 +62,11 @@ typedef struct allocation_info { uint32_t jobid; uint32_t stepid; char *nodelist; - int nnodes; + uint32_t nnodes; slurm_addr *addrs; - int num_cpu_groups; - int *cpus_per_node; - int *cpu_count_reps; + uint16_t num_cpu_groups; + uint32_t *cpus_per_node; + uint32_t *cpu_count_reps; select_jobinfo_t select_jobinfo; } allocation_info_t; @@ -104,7 +104,7 @@ job_create_noalloc(void) { srun_job_t *job = NULL; allocation_info_t *ai = xmalloc(sizeof(*ai)); - int cpn = 1; + uint32_t cpn = 1; int i = 0; hostlist_t hl = hostlist_create(opt.nodelist); -- GitLab