summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2021-01-19 14:48:09 +0100
committerThomas Haller <thaller@redhat.com>2021-01-19 19:54:31 +0100
commit6af73f9d172d6ba11a1b865f9a19881373cf8666 (patch)
treee48e4792db82ace8d1020e352dd19f0ac6ce6a47
parent5bdc36b392fe10057244a57819eb9cf6bed72ebd (diff)
downloadNetworkManager-6af73f9d172d6ba11a1b865f9a19881373cf8666.tar.gz
Revert "n-dhcp4: work around compiler warning in n_dhcp4_socket_packet_send()"
We have now a different solution using c_errno() in packet_sendto_udp(). This reverts commit 4686e9baef85037b72e0a69546a6c48f31d5b91e.
-rw-r--r--shared/n-dhcp4/src/n-dhcp4-socket.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/shared/n-dhcp4/src/n-dhcp4-socket.c b/shared/n-dhcp4/src/n-dhcp4-socket.c
index 74b1506e50..3e703b4fcb 100644
--- a/shared/n-dhcp4/src/n-dhcp4-socket.c
+++ b/shared/n-dhcp4/src/n-dhcp4-socket.c
@@ -348,8 +348,7 @@ static int n_dhcp4_socket_packet_send(int sockfd,
.sll_halen = halen,
};
const void *buf;
- size_t n_buf;
- size_t len = 0;
+ size_t n_buf, len;
int r;
c_assert(halen <= sizeof(haddr.sll_addr));