From ab9603b004ef2bfd1c3450b915320b45a07f58c8 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Mon, 25 May 2020 13:01:17 +0100 Subject: [PATCH] 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 --- src/adns.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.30.2