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..c31da23 100644 --- a/src/io_win.c +++ b/src/io_win.c @@ -28,7 +28,7 @@ udx__get_link_mtu (const struct sockaddr *addr) { rc = getsockopt(s, IPPROTO_IPV6, IPV6_MTU, (char *) &mtu, &mtu_opt_size); } if (rc == -1) { - close(s); + closesocket(s); return -1; } 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;