]> git.proxmox.com Git - mirror_iproute2.git/blobdiff - lib/utils.c
utils: Introduce and use nodev() helper routine
[mirror_iproute2.git] / lib / utils.c
index 24aeddd8e2f1eb97dc16934f002fa9f42318781d..2b8e4e8eb959562b8f95c354cebb0a649587d42e 100644 (file)
@@ -845,6 +845,12 @@ void duparg2(const char *key, const char *arg)
        exit(-1);
 }
 
+int nodev(const char *dev)
+{
+       fprintf(stderr, "Cannot find device \"%s\"\n", dev);
+       return -1;
+}
+
 int check_ifname(const char *name)
 {
        /* These checks mimic kernel checks in dev_valid_name */