diff --git a/mio/lib/dns.c b/mio/lib/dns.c index 194502e..7a4b9d4 100644 --- a/mio/lib/dns.c +++ b/mio/lib/dns.c @@ -524,7 +524,7 @@ mio_dnsc_t* mio_dnsc_start (mio_t* mio) xtn = (dnsc_sck_xtn_t*)mio_dev_sck_getxtn(dnsc->sck); xtn->dnsc = dnsc; - /* bind if requested */ + /* TODO: bind if requested */ /*if (mio_dev_sck_bind(dev, ....) <= -1) goto oops;*/ { mio_uint32_t ia = 0x01010101; /* 1.1.1.1 */ diff --git a/mio/lib/mio-sck.h b/mio/lib/mio-sck.h index 73b360f..8ce03b7 100644 --- a/mio/lib/mio-sck.h +++ b/mio/lib/mio-sck.h @@ -523,7 +523,7 @@ MIO_EXPORT mio_dev_sck_t* mio_dev_sck_make ( #if defined(MIO_HAVE_INLINE) static MIO_INLINE void* mio_dev_sck_getxtn (mio_dev_sck_t* sck) { return (void*)(sck + 1); } #else -# define mio_dev_sck_getxtn(sck) ((void*)(sck) + 1) +# define mio_dev_sck_getxtn(sck) ((void*)(((mio_dev_sck_t*)sck) + 1)) #endif MIO_EXPORT int mio_dev_sck_bind (