diff options
author | John Millikin <john@john-millikin.com> | 2023-05-08 15:02:16 +0900 |
---|---|---|
committer | John Millikin <john@john-millikin.com> | 2023-05-08 15:02:16 +0900 |
commit | dbae373978629aea0c29b6a4ba62e4cb2e2d0d4e (patch) | |
tree | 7a80b35e6baa7d5e91bcd7f6e7d537a39a715947 /src/unix/solarish/mod.rs | |
parent | 3b5109b3da613de31eb0d6bd42c9d6a6033360fb (diff) | |
download | rust-libc-dbae373978629aea0c29b6a4ba62e4cb2e2d0d4e.tar.gz |
Constify `CMSG_LEN` for all targets.
Diffstat (limited to 'src/unix/solarish/mod.rs')
-rw-r--r-- | src/unix/solarish/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/unix/solarish/mod.rs b/src/unix/solarish/mod.rs index 48ab4dbb92..400de8a264 100644 --- a/src/unix/solarish/mod.rs +++ b/src/unix/solarish/mod.rs @@ -2601,7 +2601,7 @@ f! { _CMSG_DATA_ALIGN(cmsg.offset(1) as usize) as *mut ::c_uchar } - pub fn CMSG_LEN(length: ::c_uint) -> ::c_uint { + pub {const} fn CMSG_LEN(length: ::c_uint) -> ::c_uint { _CMSG_DATA_ALIGN(::mem::size_of::<::cmsghdr>()) as ::c_uint + length } |