diff options
author | Nathaniel Daniel <nathaniel.daniel12@gmail.com> | 2022-06-14 19:38:17 -0700 |
---|---|---|
committer | Nathaniel Daniel <nathaniel.daniel12@gmail.com> | 2022-06-27 19:48:14 -0700 |
commit | 356ecce5cd196afe533d881d888856fd41fe624e (patch) | |
tree | 093b52eb3e75ed5cf6297a7cd356ec1a109c87dd /README.md | |
parent | 0922fd99e7c8cbe7334754d712e8450c29d3d8e7 (diff) | |
download | nix-356ecce5cd196afe533d881d888856fd41fe624e.zip |
Change gethostname to use a buffer of MaybeUninit values
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -25,7 +25,7 @@ call: pub unsafe extern fn gethostname(name: *mut c_char, len: size_t) -> c_int; // nix api (returns a nix::Result<CStr>) -pub fn gethostname<'a>(buffer: &'a mut [u8]) -> Result<&'a CStr>; +pub fn gethostname<'a>(buffer: &'a mut [mem::MaybeUninit<u8>]) -> Result<&'a CStr>; ``` ## Supported Platforms |