From: Ian Jackson Date: Mon, 25 May 2020 12:01:17 +0000 (+0100) Subject: adns_str* etc.: Permit calling on adns_s_* values (not _max_) X-Git-Tag: adns-1.6.0~5 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=adns.git;a=commitdiff_plain;h=ab9603b004ef2bfd1c3450b915320b45a07f58c8 adns_str* etc.: Permit calling on adns_s_* values (not _max_) This is useful because otherwise an application may not use these values for its own errors, if that might result in them being passed to the adns_strerror etc. No code change: the table already has all the values. Signed-off-by: Ian Jackson --- diff --git a/src/adns.h b/src/adns.h index b8072ee..ba44b06 100644 --- a/src/adns.h +++ b/src/adns.h @@ -1089,7 +1089,9 @@ const char *adns_errtypeabbrev(adns_status st); * * If you call these functions with status values not actually * returned from other functions in the same adns library, the - * returned information may be NULL. + * returned information may be NULL. (You are also guaranteed + * that the return value will not be NULL for values in the + * adns_status enum, *except* for adns_s_max_XXXX.) */ #ifdef __cplusplus