]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Return a better error if we don't find our interface.
authorRoy Marples <roy@marples.name>
Thu, 4 Feb 2016 10:00:00 +0000 (10:00 +0000)
committerRoy Marples <roy@marples.name>
Thu, 4 Feb 2016 10:00:00 +0000 (10:00 +0000)
if.c

diff --git a/if.c b/if.c
index 52609c9363b68206a23ce2469b2a4fc8a20f8158..b3df1681ef889013d64c9c0a5947b8798c3e4438 100644 (file)
--- a/if.c
+++ b/if.c
@@ -562,7 +562,7 @@ if_findindexname(struct if_head *ifaces, unsigned int idx, const char *name)
                }
        }
 
-       errno = ESRCH;
+       errno = ENXIO;
        return NULL;
 }