minor code cleanup

This commit is contained in:
2020-07-01 09:40:34 +00:00
parent 3c77ca433b
commit 970deb9966
3 changed files with 8 additions and 27 deletions

View File

@ -879,6 +879,13 @@ static void on_dnc_resolve (mio_svc_dnc_t* dnc, mio_dns_msg_t* reqmsg, mio_errnu
goto no_data;
}
/*
if (pi->hdr.code == MIO_DNS_RCODE_BADCOOKIE)
{
// retry with server cookie received....
}
*/
if (pi->hdr.rcode != MIO_DNS_RCODE_NOERROR)
{
status = MIO_EINVAL;

View File

@ -261,7 +261,7 @@ MIO_EXPORT void mio_svc_marc_stop (
#if defined(MIO_HAVE_INLINE)
static MIO_INLINE mio_t* mio_svc_marc_getmio(mio_svc_marc_t* svc) { return mio_svc_getmio((mio_svc_t*)svc); }
#else
# define mio_svc_marc_getmio(svc) mio_svc_getmio(svc)
# define mio_svc_marc_getmio(svc) mio_svc_getmio(svc)
#endif
MIO_EXPORT int mio_svc_marc_querywithbchars (