Reduce cbindgen warning from errno.h

This commit is contained in:
Wildan M
2025-12-25 16:50:26 +07:00
parent d82db81ae2
commit 8f97d2298a
+2 -2
View File
@@ -178,7 +178,7 @@ pub const EOWNERDEAD: c_int = 130; /* Owner died */
pub const ENOTRECOVERABLE: c_int = 131; /* State not recoverable */
/// String representations for the respective `errno` values.
pub const STR_ERROR: [&str; 132] = [
pub(crate) const STR_ERROR: [&str; 132] = [
"Success",
"Operation not permitted",
"No such file or directory",
@@ -314,7 +314,7 @@ pub const STR_ERROR: [&str; 132] = [
];
/// Longest error message length
pub const STRERROR_MAX: usize = {
pub(crate) const STRERROR_MAX: usize = {
// Number of digits of the max value of this platform's c_int
let digits = {
let mut len = 0;