1
0
Fork 0
mirror of https://libwebsockets.org/repo/libwebsockets synced 2025-05-11 10:55:32 +00:00

no_logs: trim unused local

This commit is contained in:
Andy Green 2025-04-25 09:51:49 +01:00
parent bc516f083d
commit 96c189d2f4

View file

@ -384,10 +384,12 @@ lws_socket_bind(struct lws_vhost *vhost, struct lws *wsi,
#if defined(LWS_WITH_BINDTODEVICE)
if (af != AF_UNIX && iface) {
if (setsockopt(sockfd, SOL_SOCKET, SO_BINDTODEVICE, iface, (socklen_t)strlen(iface)) < 0) {
#if !defined(LWS_WITH_NO_LOGS)
int _lws_errno = LWS_ERRNO;
lwsl_wsi_warn(wsi, "setsockopt bind to device %s error fd %d (%d)",
iface, sockfd, _lws_errno);
/* Root only, non-fatal, continue here. */
#endif
/* Root only, non-fatal, continue here. */
}
}
#endif