summaryrefslogtreecommitdiff
path: root/src/unix
diff options
context:
space:
mode:
authorVilgot Fredenberg <vilgot@fredenberg.xyz>2021-03-30 22:29:43 +0200
committerGitHub <noreply@github.com>2021-03-30 22:29:43 +0200
commitcbee28b025c03fdd3b2aebe8d960826330a116fc (patch)
treef2bfc6cae6d5f723a244002701abd29de3141645 /src/unix
parent77056408a1cab851d5d4f8c4fb903f102d8b7c65 (diff)
downloadrust-libc-cbee28b025c03fdd3b2aebe8d960826330a116fc.tar.gz
Fix typo in swapoff
Diffstat (limited to 'src/unix')
-rw-r--r--src/unix/linux_like/linux/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/unix/linux_like/linux/mod.rs b/src/unix/linux_like/linux/mod.rs
index 058b0df435..36424c26f4 100644
--- a/src/unix/linux_like/linux/mod.rs
+++ b/src/unix/linux_like/linux/mod.rs
@@ -3439,7 +3439,7 @@ extern "C" {
param: *const ::sched_param,
) -> ::c_int;
pub fn setns(fd: ::c_int, nstype: ::c_int) -> ::c_int;
- pub fn swapoff(puath: *const ::c_char) -> ::c_int;
+ pub fn swapoff(path: *const ::c_char) -> ::c_int;
pub fn vmsplice(
fd: ::c_int,
iov: *const ::iovec,