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:
parent
bc516f083d
commit
96c189d2f4
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue