dhcp: Fix warning with newer compilers

This commit is contained in:
Tobias Brunner
2023-06-19 14:56:24 +02:00
parent 8238ad480a
commit 2e88ab0069
+1 -1
View File
@@ -899,7 +899,7 @@ dhcp_socket_t *dhcp_socket_create()
return NULL;
}
addr_len = sizeof(this->src);
if (getsockname(this->send, &this->src, &addr_len) < 0)
if (getsockname(this->send, (struct sockaddr*)&this->src, &addr_len) < 0)
{
DBG1(DBG_CFG, "unable to determine source address for DHCP: %s",
strerror(errno));