X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/adns/blobdiff_plain/11c8bf9bc50213e3774f8367ce3d5b17b2f95c49..f47cdeec5fbda82dc74d506f24e069558ee51a2c:/src/internal.h diff --git a/src/internal.h b/src/internal.h index 24e69a8..a20dd93 100644 --- a/src/internal.h +++ b/src/internal.h @@ -317,6 +317,9 @@ void *adns__alloc_interim(adns_query qu, size_t sz); * * _alloc_interim can fail, in which case it will fail the query too, * so nothing more need be done with it. + * + * adns__alloc_interim(qu,0) will not return 0, but it will not + * necessarily return a distinct pointer each time. */ void *adns__alloc_mine(adns_query qu, size_t sz); @@ -326,7 +329,7 @@ void *adns__alloc_mine(adns_query qu, size_t sz); */ void *adns__alloc_final(adns_query qu, size_t sz); -/* Cannot fail. +/* Cannot fail, and cannot return 0. */ void adns__makefinal_block(adns_query qu, void **blpp, size_t sz);