]> git.proxmox.com Git - proxmox-backup.git/commitdiff
pbs-api-types: remove libc dependency
authorDietmar Maurer <dietmar@proxmox.com>
Wed, 1 Dec 2021 08:10:25 +0000 (09:10 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Wed, 1 Dec 2021 08:10:25 +0000 (09:10 +0100)
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
pbs-api-types/Cargo.toml
pbs-api-types/src/network.rs

index 23b40c35fc53f898757a73babe8aa90587ac531e..50746c797fa099921b8197206744bec3a5162f88 100644 (file)
@@ -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"
index de27df7eef5d81a6ee45b8e78b52be9c94d048ea..f2af3e6fe58659c4f1fca54bc7252138cf7cb12e 100644 (file)
@@ -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(