From 8e9fdc61473f851f8747f379353bd6725e173720 Mon Sep 17 00:00:00 2001 From: David Sidrane Date: Thu, 14 May 2015 16:44:55 -1000 Subject: [PATCH] Use stdlib's calloc for compaiblity --- src/modules/systemlib/param/param.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/modules/systemlib/param/param.c b/src/modules/systemlib/param/param.c index 544eeaa39d..26568266e7 100644 --- a/src/modules/systemlib/param/param.c +++ b/src/modules/systemlib/param/param.c @@ -44,6 +44,7 @@ #include #include #include +#include #include #include #include @@ -105,7 +106,7 @@ get_param_info_count(void) if (!param_changed_storage) { size_param_changed_storage_bytes = (param_info_count / bits_per_allocation_unit ) + 1; - param_changed_storage = zalloc(size_param_changed_storage_bytes); + param_changed_storage = calloc(size_param_changed_storage_bytes, 1); } return param_info_count; }