aboutsummaryrefslogtreecommitdiff
path: root/nitrocli/src/commands.rs
diff options
context:
space:
mode:
Diffstat (limited to 'nitrocli/src/commands.rs')
-rw-r--r--nitrocli/src/commands.rs7
1 files changed, 2 insertions, 5 deletions
diff --git a/nitrocli/src/commands.rs b/nitrocli/src/commands.rs
index 503a180..77981db 100644
--- a/nitrocli/src/commands.rs
+++ b/nitrocli/src/commands.rs
@@ -22,6 +22,8 @@ use std::result;
use std::time;
use std::u8;
+use libc::sync;
+
use nitrokey::ConfigureOtp;
use nitrokey::Device;
use nitrokey::GenerateOtp;
@@ -234,11 +236,6 @@ pub fn storage_open() -> Result<()> {
)
}
-#[link(name = "c")]
-extern "C" {
- fn sync();
-}
-
/// Close the previously opened encrypted volume.
pub fn storage_close() -> Result<()> {
// Flush all filesystem caches to disk. We are mostly interested in