From 0f9fda81e63f9591ebab4ecec8cd47fd09feb4fc Mon Sep 17 00:00:00 2001 From: Wouter Wijngaards Date: Tue, 17 Mar 2015 09:38:47 +0000 Subject: [PATCH] please lint. git-svn-id: file:///svn/unbound/trunk@3366 be551aaa-1e26-0410-a405-d3ace91eadb9 --- util/config_file.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util/config_file.c b/util/config_file.c index 86755690a..195fadaea 100644 --- a/util/config_file.c +++ b/util/config_file.c @@ -455,7 +455,7 @@ int config_set_option(struct config_file* cfg, const char* opt, else if (strcmp(opt, "outgoing-interface:") == 0) { char* d = strdup(val); char** oi = - (char**)reallocarray(NULL, (cfg->num_out_ifs+1), sizeof(char*)); + (char**)reallocarray(NULL, (size_t)cfg->num_out_ifs+1, sizeof(char*)); if(!d || !oi) { free(d); free(oi); return -1; } if(cfg->out_ifs && cfg->num_out_ifs) { memmove(oi, cfg->out_ifs, cfg->num_out_ifs*sizeof(char*)); @@ -1002,7 +1002,7 @@ int cfg_condense_ports(struct config_file* cfg, int** avail) *avail = NULL; if(num == 0) return 0; - *avail = (int*)reallocarray(NULL, num, sizeof(int)); + *avail = (int*)reallocarray(NULL, (size_t)num, sizeof(int)); if(!*avail) return 0; for(i=0; i<65536; i++) { -- 2.47.2