diff options
author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2020-05-25 13:01:17 +0100 |
---|---|---|
committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2020-06-11 16:13:02 +0100 |
commit | ab9603b004ef2bfd1c3450b915320b45a07f58c8 (patch) | |
tree | 2902fd5f5d310d9489ec93aaa7ea9413321f7d2b | |
parent | 2b44fb38172ff0d64d1d5d907e3322d5e1a6a8ca (diff) |
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 <ijackson@chiark.greenend.org.uk>
-rw-r--r-- | src/adns.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 |