diff --git a/src/endian.h b/src/endian.h index c8f51d3..bb61522 100644 --- a/src/endian.h +++ b/src/endian.h @@ -4,12 +4,10 @@ #include #include -typedef enum udx__endianness udx__endianness_t; - -enum udx__endianness { +typedef enum { UDX_LE, UDX_BE -}; +} udx__endianness_t; udx__endianness_t udx__endianness (); diff --git a/src/io_win.c b/src/io_win.c index bd1a097..4afc084 100644 --- a/src/io_win.c +++ b/src/io_win.c @@ -1,4 +1,5 @@ #include +#include #include #include "internal.h" diff --git a/src/udx.c b/src/udx.c index f239c4b..ee841f5 100644 --- a/src/udx.c +++ b/src/udx.c @@ -2515,6 +2515,7 @@ udx_stream_relay_to (udx_stream_t *stream, udx_stream_t *destination) { int udx_stream_send (udx_stream_send_t *req, udx_stream_t *stream, const uv_buf_t bufs[], unsigned int bufs_len, udx_stream_send_cb cb) { + UDX_UNUSED(bufs_len); if (!(stream->status & UDX_STREAM_CONNECTED)) { return UV_ENOTCONN;