]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
please lint.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 17 Mar 2015 09:38:47 +0000 (09:38 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 17 Mar 2015 09:38:47 +0000 (09:38 +0000)
git-svn-id: file:///svn/unbound/trunk@3366 be551aaa-1e26-0410-a405-d3ace91eadb9

util/config_file.c

index 86755690ad1e28aee5c1adad053108d1a17e0834..195fadaea2e30f73616a02d092547a518e723030 100644 (file)
@@ -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++) {