From: Roy Marples Date: Thu, 4 Feb 2016 10:00:00 +0000 (+0000) Subject: Return a better error if we don't find our interface. X-Git-Tag: v6.10.2~73 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=df155eb9d4c36c649d8acb9f8625cbe40afa3368;p=thirdparty%2Fdhcpcd.git Return a better error if we don't find our interface. --- diff --git a/if.c b/if.c index 52609c93..b3df1681 100644 --- 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; }