From 17bb10118a11e54e99e5c9d4e386f3ed0bde72a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A4r=20Andersson?= <paran@nsc.liu.se> Date: Fri, 17 Feb 2012 23:58:03 +0100 Subject: [PATCH] Size parameter of xduparray also needs to be uint32_t --- src/slurmctld/proc_req.c | 4 ++-- src/slurmctld/proc_req.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/slurmctld/proc_req.c b/src/slurmctld/proc_req.c index a8175042c09..e58a9d260af 100644 --- a/src/slurmctld/proc_req.c +++ b/src/slurmctld/proc_req.c @@ -3501,7 +3501,7 @@ inline static void _slurm_rpc_checkpoint_task_comp(slurm_msg_t * msg) /* Copy an array of type char **, xmalloc() the array and xstrdup() the * strings in the array */ extern char ** -xduparray(uint16_t size, char ** array) +xduparray(uint32_t size, char ** array) { int i; char ** result; @@ -3519,7 +3519,7 @@ xduparray(uint16_t size, char ** array) /* Like xduparray(), but performs one xmalloc(). The output format of this * must be identical to _read_data_array_from_file() */ static char ** -_xduparray2(uint16_t size, char ** array) +_xduparray2(uint32_t size, char ** array) { int i, len = 0; char *ptr, ** result; diff --git a/src/slurmctld/proc_req.h b/src/slurmctld/proc_req.h index 5e335dba8f3..6f5f252d40a 100644 --- a/src/slurmctld/proc_req.h +++ b/src/slurmctld/proc_req.h @@ -74,7 +74,7 @@ extern int slurm_fail_job(uint32_t job_id); /* Copy an array of type char **, xmalloc() the array and xstrdup() the * strings in the array */ -extern char **xduparray(uint16_t size, char ** array); +extern char **xduparray(uint32_t size, char ** array); #endif /* !_HAVE_PROC_REQ_H */ -- GitLab