summaryrefslogtreecommitdiffstats
path: root/if.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2016-02-04 10:00:00 +0000
committerRoy Marples <roy@marples.name>2016-02-04 10:00:00 +0000
commitdf155eb9d4c36c649d8acb9f8625cbe40afa3368 (patch)
tree0f10deb193a498f6fd2a60ddbf8a9d5bb007270e /if.c
parent71725cbcfe02b34f4dc2dd019851583573a7b52a (diff)
downloaddhcpcd-df155eb9d4c36c649d8acb9f8625cbe40afa3368.tar.xz
Return a better error if we don't find our interface.
Diffstat (limited to 'if.c')
-rw-r--r--if.c2
1 files changed, 1 insertions, 1 deletions
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;
}