From 37eaac3546260f447741221fc4780b7fef433cad Mon Sep 17 00:00:00 2001 From: Adrian Haensler Date: Wed, 7 Apr 2021 17:22:49 -0700 Subject: [PATCH] update for libc 0.2.90 --- Cargo.toml | 2 +- src/platform/linux.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index ba5429d..f3f91ef 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "fs-swap" -version = "0.2.4" +version = "0.2.4-1" authors = ["debris "] description = "Cross-platform implementation of path swap" license = "MIT" diff --git a/src/platform/linux.rs b/src/platform/linux.rs index 8cb4539..7d02db6 100644 --- a/src/platform/linux.rs +++ b/src/platform/linux.rs @@ -6,7 +6,7 @@ use std::{io, ffi}; unsafe fn renameat2( olddirfd: libc::c_int, oldpath: *const libc::c_char, - newdirfd: libc::c_int, newpath: *const libc::c_char, flags: libc::c_int + newdirfd: libc::c_int, newpath: *const libc::c_char, flags: libc::c_uint ) -> libc::c_int { libc::syscall(libc::SYS_renameat2, olddirfd, oldpath, newdirfd, newpath, flags) as libc::c_int }