fixed the mio_dev_sck_getxtn() macro

This commit is contained in:
hyung-hwan 2019-04-12 05:52:33 +00:00
parent 856d87db55
commit 0d3bebb42f
2 changed files with 2 additions and 2 deletions

View File

@ -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_sck_xtn_t*)mio_dev_sck_getxtn(dnsc->sck);
xtn->dnsc = dnsc; xtn->dnsc = dnsc;
/* bind if requested */ /* TODO: bind if requested */
/*if (mio_dev_sck_bind(dev, ....) <= -1) goto oops;*/ /*if (mio_dev_sck_bind(dev, ....) <= -1) goto oops;*/
{ {
mio_uint32_t ia = 0x01010101; /* 1.1.1.1 */ mio_uint32_t ia = 0x01010101; /* 1.1.1.1 */

View File

@ -523,7 +523,7 @@ MIO_EXPORT mio_dev_sck_t* mio_dev_sck_make (
#if defined(MIO_HAVE_INLINE) #if defined(MIO_HAVE_INLINE)
static MIO_INLINE void* mio_dev_sck_getxtn (mio_dev_sck_t* sck) { return (void*)(sck + 1); } static MIO_INLINE void* mio_dev_sck_getxtn (mio_dev_sck_t* sck) { return (void*)(sck + 1); }
#else #else
# define mio_dev_sck_getxtn(sck) ((void*)(sck) + 1) # define mio_dev_sck_getxtn(sck) ((void*)(((mio_dev_sck_t*)sck) + 1))
#endif #endif
MIO_EXPORT int mio_dev_sck_bind ( MIO_EXPORT int mio_dev_sck_bind (