Browse Source

TT#14008 fix some warnings from musl

Change-Id: I99fe1185cf814232b44c078b62199e850850cb0d
pull/1093/head
Richard Fuchs 5 years ago
parent
commit
e1dda97028
3 changed files with 4 additions and 3 deletions
  1. +1
    -1
      daemon/graphite.c
  2. +2
    -2
      daemon/websocket.c
  3. +1
    -0
      t/tests-preload.c

+ 1
- 1
daemon/graphite.c View File

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


+ 2
- 2
daemon/websocket.c View File

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


+ 1
- 0
t/tests-preload.c View File

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


Loading…
Cancel
Save