From f7fde5c81b704a9045a5117e0f946aac33cab48e Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Wed, 1 Dec 2021 09:10:25 +0100 Subject: [PATCH] pbs-api-types: remove libc dependency Signed-off-by: Dietmar Maurer --- pbs-api-types/Cargo.toml | 1 - pbs-api-types/src/network.rs | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/pbs-api-types/Cargo.toml b/pbs-api-types/Cargo.toml index 23b40c35..50746c79 100644 --- a/pbs-api-types/Cargo.toml +++ b/pbs-api-types/Cargo.toml @@ -9,7 +9,6 @@ description = "general API type helpers for PBS" anyhow = "1.0" hex = "0.4.3" lazy_static = "1.4" -libc = "0.2" openssl = "0.10" percent-encoding = "2.1" regex = "1.2" diff --git a/pbs-api-types/src/network.rs b/pbs-api-types/src/network.rs index de27df7e..f2af3e6f 100644 --- a/pbs-api-types/src/network.rs +++ b/pbs-api-types/src/network.rs @@ -127,7 +127,7 @@ pub enum NetworkInterfaceType { pub const NETWORK_INTERFACE_NAME_SCHEMA: Schema = StringSchema::new("Network interface name.") .format(&NETWORK_INTERFACE_FORMAT) .min_length(1) - .max_length(libc::IFNAMSIZ-1) + .max_length(15) // libc::IFNAMSIZ-1 .schema(); pub const NETWORK_INTERFACE_ARRAY_SCHEMA: Schema = ArraySchema::new(