add clippy annotation to netdb thanks to safety note

This commit is contained in:
auronandace
2025-12-08 08:41:00 +00:00
parent 651768ad54
commit 1ed1096e60
+1
View File
@@ -1075,6 +1075,7 @@ pub const extern "C" fn hstrerror(errcode: c_int) -> *const c_char {
/// [`H_ERRNO`], [`hstrerror`], [`herror`], and other functions are deprecated as of
/// POSIX.1-2001 and removed as of POSIX.1-2008. These functions are provided for backwards
/// compatibility but should not be used by new code.
#[allow(clippy::not_unsafe_ptr_arg_deref)]
#[unsafe(no_mangle)]
#[deprecated]
pub extern "C" fn herror(prefix: *const c_char) {