Skip to content

Commit

Permalink
Merge branch 'bugfix/udp_client_build_error' into 'master'
Browse files Browse the repository at this point in the history
socket examples: Fix udp_client build error

Closes IDFGH-2982

See merge request espressif/esp-idf!8176
  • Loading branch information
david-cermak committed Mar 31, 2020
2 parents dcc2963 + 8592f14 commit 8b00635
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions examples/protocols/sockets/udp_client/main/udp_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ static void udp_client_task(void *pvParameters)
dest_addr.sin_port = htons(PORT);
addr_family = AF_INET;
ip_protocol = IPPROTO_IP;
inet_ntoa_r(dest_addr.sin_addr, addr_str, sizeof(addr_str) - 1);
#elif defined(CONFIG_EXAMPLE_IPV6)
struct sockaddr_in6 dest_addr = { 0 };
inet6_aton(HOST_IP_ADDR, &dest_addr.sin6_addr);
Expand All @@ -64,7 +63,6 @@ static void udp_client_task(void *pvParameters)
dest_addr.sin6_scope_id = esp_netif_get_netif_impl_index(EXAMPLE_INTERFACE);
addr_family = AF_INET6;
ip_protocol = IPPROTO_IPV6;
inet6_ntoa_r(dest_addr.sin6_addr, addr_str, sizeof(addr_str) - 1);
#elif defined(CONFIG_EXAMPLE_SOCKET_IP_INPUT_STDIN)
struct sockaddr_in6 dest_addr = { 0 };
ESP_ERROR_CHECK(get_addr_from_stdin(PORT, SOCK_DGRAM, &ip_protocol, &addr_family, &dest_addr));
Expand Down

0 comments on commit 8b00635

Please sign in to comment.