TT#14008 fix some warnings from musl

Change-Id: I99fe1185cf814232b44c078b62199e850850cb0d
pull/1093/head
Richard Fuchs 5 years ago
parent 32cfb61e0b
commit e1dda97028

@ -6,7 +6,7 @@
*/ */
#include <sys/types.h> #include <sys/types.h>
#include <sys/socket.h> #include <sys/socket.h>
#include <sys/poll.h> #include <poll.h>
#include <netinet/in.h> #include <netinet/in.h>
#include <arpa/inet.h> #include <arpa/inet.h>
#include <unistd.h> #include <unistd.h>

@ -546,7 +546,7 @@ static int websocket_http(struct lws *wsi, enum lws_callback_reasons reason, voi
case LWS_CALLBACK_FILTER_PROTOCOL_CONNECTION: case LWS_CALLBACK_FILTER_PROTOCOL_CONNECTION:
return -1; // disallow non supported websocket protocols return -1; // disallow non supported websocket protocols
case LWS_CALLBACK_GET_THREAD_ID: case LWS_CALLBACK_GET_THREAD_ID:
return pthread_self(); return (long int) pthread_self();
case LWS_CALLBACK_WSI_CREATE: case LWS_CALLBACK_WSI_CREATE:
ilog(LOG_DEBUG, "WS client created %p", wsi); ilog(LOG_DEBUG, "WS client created %p", wsi);
break; break;
@ -609,7 +609,7 @@ static int websocket_protocol(struct lws *wsi, enum lws_callback_reasons reason,
#endif #endif
break; break;
case LWS_CALLBACK_GET_THREAD_ID: case LWS_CALLBACK_GET_THREAD_ID:
return pthread_self(); return (long int) pthread_self();
case LWS_CALLBACK_ESTABLISHED: case LWS_CALLBACK_ESTABLISHED:
ilog(LOG_DEBUG, "Websocket protocol '%s' established", name); ilog(LOG_DEBUG, "Websocket protocol '%s' established", name);
websocket_conn_init(wsi, wc); websocket_conn_init(wsi, wc);

@ -12,6 +12,7 @@
#include <sys/stat.h> #include <sys/stat.h>
#include <errno.h> #include <errno.h>
#include <pthread.h> #include <pthread.h>
#include <string.h>
typedef struct { typedef struct {
int used_domain, int used_domain,

Loading…
Cancel
Save