From fe61280b6bf7ea2ca48635ce029f5ea4dd997c84 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Mon, 25 Jan 2021 14:54:25 +0100 Subject: [PATCH] tools::sgutils2: extern 'C' and import ordering Signed-off-by: Wolfgang Bumiller --- src/tools/sgutils2.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tools/sgutils2.rs b/src/tools/sgutils2.rs index f6d81ce8..12c91918 100644 --- a/src/tools/sgutils2.rs +++ b/src/tools/sgutils2.rs @@ -7,8 +7,8 @@ use std::os::unix::io::AsRawFd; use anyhow::{bail, format_err, Error}; -use libc::{c_char, c_int}; use endian_trait::Endian; +use libc::{c_char, c_int}; use proxmox::tools::io::ReadExt; @@ -124,7 +124,7 @@ pub const SCSI_PT_RESULT_TRANSPORT_ERR:c_int = 3; pub const SCSI_PT_RESULT_OS_ERR:c_int = 4; #[link(name = "sgutils2")] -extern { +extern "C" { #[allow(dead_code)] fn scsi_pt_open_device(