X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=adns.git;a=blobdiff_plain;f=src%2Finternal.h;h=a20dd932d9b5cbd40299fb288f22086aecce13d1;hp=24e69a8d4cfb1428aa9112a07ab80ac2c46eb574;hb=a49a6d7b1f7da9722082778d6694ccbc077d262a;hpb=3955725ceceb330041f8e7a27e6629a2e8a9b5ba 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);