From bf63629e5b849706774c846b33a19904dba7e162 Mon Sep 17 00:00:00 2001 From: Tim Wickberg <tim@schedmd.com> Date: Thu, 31 Jan 2019 11:25:40 -0700 Subject: [PATCH] Sync up xmalloc macro and slurm_xcalloc prototype in Perl API. Bug 6436. --- contribs/perlapi/libslurm/perl/slurm-perl.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contribs/perlapi/libslurm/perl/slurm-perl.h b/contribs/perlapi/libslurm/perl/slurm-perl.h index ce7ccc51999..e97ed6fdeb6 100644 --- a/contribs/perlapi/libslurm/perl/slurm-perl.h +++ b/contribs/perlapi/libslurm/perl/slurm-perl.h @@ -13,11 +13,11 @@ #define xfree(__p) \ slurm_xfree((void **)&(__p), __FILE__, __LINE__, __func__) #define xmalloc(__sz) \ - slurm_xmalloc (__sz, true, __FILE__, __LINE__, __func__) + slurm_xcalloc(1, __sz, true, false, __FILE__, __LINE__, __func__) #endif extern void slurm_xfree(void **, const char *, int, const char *); -extern void *slurm_xmalloc(uint64_t, bool, const char *, int, const char *); +extern void *slurm_xcalloc(size_t, size_t, bool, bool, const char *, int, const char *); extern void slurm_api_clear_config(void); -- GitLab