File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,9 @@ This project adheres to [Semantic Versioning](http://semver.org/).
31
31
32
32
### Removed
33
33
34
+ - Removed ` sys::socket::addr::from_libc_sockaddr ` from the public API.
35
+ (#[ 1215] ( https://github.com/nix-rust/nix/pull/1215 ) )
36
+
34
37
## [ 0.17.0] - 3 February 2020
35
38
### Added
36
39
- Add ` CLK_TCK ` to ` SysconfVar `
Original file line number Diff line number Diff line change @@ -714,7 +714,12 @@ impl SockAddr {
714
714
///
715
715
/// Supports only the following address families: Unix, Inet (v4 & v6), Netlink and System.
716
716
/// Returns None for unsupported families.
717
- pub unsafe fn from_libc_sockaddr ( addr : * const libc:: sockaddr ) -> Option < SockAddr > {
717
+ ///
718
+ /// # Safety
719
+ ///
720
+ /// unsafe because it takes a raw pointer as argument. The caller must
721
+ /// ensure that the pointer is valid.
722
+ pub ( crate ) unsafe fn from_libc_sockaddr ( addr : * const libc:: sockaddr ) -> Option < SockAddr > {
718
723
if addr. is_null ( ) {
719
724
None
720
725
} else {
You can’t perform that action at this time.
0 commit comments