mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-24 00:29:58 -05:00
please lint.
git-svn-id: file:///svn/unbound/trunk@3366 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
63b5d109f8
commit
0f9fda81e6
1 changed files with 2 additions and 2 deletions
|
|
@ -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++) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue