From: Roy Marples Date: Wed, 6 Jan 2016 11:00:59 +0000 (+0000) Subject: OpenBSD does not have ENODATA, use EOVERFLOW instead. X-Git-Tag: v6.10.0~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a0800a8a30e3e6bc727a4118c282e817d888f6a6;p=thirdparty%2Fdhcpcd.git OpenBSD does not have ENODATA, use EOVERFLOW instead. --- diff --git a/dhcp-common.c b/dhcp-common.c index 2e12d00f..24703d33 100644 --- a/dhcp-common.c +++ b/dhcp-common.c @@ -599,7 +599,7 @@ dhcp_optlen(const struct dhcp_opt *opt, size_t dl) /* All other types are variable length */ if (opt->len) { if ((size_t)opt->len > dl) { - errno = ENODATA; + errno = EOVERFLOW; return -1; } return (ssize_t)opt->len; @@ -607,7 +607,7 @@ dhcp_optlen(const struct dhcp_opt *opt, size_t dl) return (ssize_t)dl; } if (dl < sz) { - errno = ENODATA; + errno = EOVERFLOW; return -1; }