Skip to content

Commit

Permalink
Fix broken parentheses in setsockopt call
Browse files Browse the repository at this point in the history
  • Loading branch information
ivmarkov committed Aug 10, 2021
1 parent 83956eb commit 5ca281e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/lwip/apps/ping/ping_sock.c
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ esp_err_t esp_ping_new_session(const esp_ping_config_t *config, const esp_ping_c
if(netif_index_to_name(config->interface, iface.ifr_name) == NULL) {
goto err;
}
if(setsockopt(ep->sock, SOL_SOCKET, SO_BINDTODEVICE, &iface, sizeof(iface) !=0)) {
if(setsockopt(ep->sock, SOL_SOCKET, SO_BINDTODEVICE, &iface, sizeof(iface)) != 0) {
goto err;
}
}
Expand Down

0 comments on commit 5ca281e

Please sign in to comment.