Skip to content
Snippets Groups Projects
Commit 621eae86 authored by Gregory Nutt's avatar Gregory Nutt
Browse files

Networking: If IPV6 is not enabled, an warning occurs for an unused variable,...

Networking: If IPV6 is not enabled, an warning occurs for an unused variable, which is currently used inside the IPV6 block, but declared outside.  From ObitalFox.
parent 0dc464e5
No related branches found
No related tags found
No related merge requests found
...@@ -960,7 +960,6 @@ static inline void recvfrom_udpsender(struct net_driver_s *dev, struct recvfrom_ ...@@ -960,7 +960,6 @@ static inline void recvfrom_udpsender(struct net_driver_s *dev, struct recvfrom_
{ {
FAR struct sockaddr_in *infrom = FAR struct sockaddr_in *infrom =
(FAR struct sockaddr_in *)pstate->rf_from; (FAR struct sockaddr_in *)pstate->rf_from;
FAR socklen_t *fromlen = pstate->rf_fromlen;
if (infrom) if (infrom)
{ {
...@@ -977,6 +976,7 @@ static inline void recvfrom_udpsender(struct net_driver_s *dev, struct recvfrom_ ...@@ -977,6 +976,7 @@ static inline void recvfrom_udpsender(struct net_driver_s *dev, struct recvfrom_
if (conn->domain == PF_INET6) if (conn->domain == PF_INET6)
{ {
FAR socklen_t *fromlen = pstate->rf_fromlen;
in_addr_t ipv4addr; in_addr_t ipv4addr;
/* Encode the IPv4 address as an IPv4-mapped IPv6 address */ /* Encode the IPv4 address as an IPv4-mapped IPv6 address */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment