Fix typo get openoptions function name

Co-authored-by: Ivan Tham <pickfire@riseup.net>
This commit is contained in:
Federico Ponzi 2020-08-30 17:01:20 +02:00 committed by GitHub
parent 27c90b881d
commit eb3906be4a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -963,7 +963,7 @@ pub fn rename(old: &Path, new: &Path) -> io::Result<()> {
Ok(())
}
pub fn get_openopetions_as_cint(from: OpenOptions) -> io::Result<libc::c_int> {
pub fn get_openoptions_as_cint(from: OpenOptions) -> io::Result<libc::c_int> {
let access_mode = from.get_access_mode()?;
let creation_mode = from.get_creation_mode()?;
Ok(creation_mode | access_mode)