(x: &OptionalArg<ffi::CString>)
| 2666 | } |
| 2667 | |
| 2668 | fn cstr_opt_as_ptr(x: &OptionalArg<ffi::CString>) -> *const libc::c_char { |
| 2669 | x.as_ref().map_or_else(core::ptr::null, |s| s.as_ptr()) |
| 2670 | } |
| 2671 | |
| 2672 | #[pyfunction] |
| 2673 | fn getservbyname( |
no test coverage detected