mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-09-28 12:44:58 +02:00
- Fix alloc-size and calloc-transposed-args compiler warnings.
This commit is contained in:
@@ -502,7 +502,7 @@ struct listen_port* daemon_remote_open_ports(struct config_file*
|
||||
|
||||
struct daemon_remote* daemon_remote_create(struct config_file* ATTR_UNUSED(cfg))
|
||||
{
|
||||
return (struct daemon_remote*)calloc(1,1);
|
||||
return (struct daemon_remote*)calloc(1, sizeof(struct daemon_remote));
|
||||
}
|
||||
|
||||
void daemon_remote_delete(struct daemon_remote* rc)
|
||||
|
||||
Reference in New Issue
Block a user