diff options
| author | 2020-02-11 17:22:31 +0000 | |
|---|---|---|
| committer | 2020-02-11 17:22:31 +0000 | |
| commit | 77d843245b4a0a4806bdb972be24cbe48da36f94 (patch) | |
| tree | 22474e9df70a68d88fbf3b0512b2e732ca31abf5 /usr.bin/dig/lib/isc/unix/errno2result.c | |
| parent | Remove ~/.digrc support which feels like a misfeature. (diff) | |
| download | wireguard-openbsd-77d843245b4a0a4806bdb972be24cbe48da36f94.tar.xz wireguard-openbsd-77d843245b4a0a4806bdb972be24cbe48da36f94.zip | |
unifdef feature checks; we have all these things.
OK millert
Diffstat (limited to 'usr.bin/dig/lib/isc/unix/errno2result.c')
| -rw-r--r-- | usr.bin/dig/lib/isc/unix/errno2result.c | 26 |
1 files changed, 1 insertions, 25 deletions
diff --git a/usr.bin/dig/lib/isc/unix/errno2result.c b/usr.bin/dig/lib/isc/unix/errno2result.c index 4430910a346..05ffbdf770d 100644 --- a/usr.bin/dig/lib/isc/unix/errno2result.c +++ b/usr.bin/dig/lib/isc/unix/errno2result.c @@ -14,7 +14,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: errno2result.c,v 1.1 2020/02/07 09:58:54 florian Exp $ */ +/* $Id: errno2result.c,v 1.2 2020/02/11 17:22:31 florian Exp $ */ /*! \file */ @@ -59,54 +59,30 @@ isc___errno2result(int posixerrno, isc_boolean_t dolog, case ENFILE: case EMFILE: return (ISC_R_TOOMANYOPENFILES); -#ifdef EOVERFLOW case EOVERFLOW: return (ISC_R_RANGE); -#endif case EPIPE: -#ifdef ECONNRESET case ECONNRESET: -#endif -#ifdef ECONNABORTED case ECONNABORTED: -#endif return (ISC_R_CONNECTIONRESET); -#ifdef ENOTCONN case ENOTCONN: return (ISC_R_NOTCONNECTED); -#endif -#ifdef ETIMEDOUT case ETIMEDOUT: return (ISC_R_TIMEDOUT); -#endif -#ifdef ENOBUFS case ENOBUFS: return (ISC_R_NORESOURCES); -#endif -#ifdef EAFNOSUPPORT case EAFNOSUPPORT: return (ISC_R_FAMILYNOSUPPORT); -#endif -#ifdef ENETDOWN case ENETDOWN: return (ISC_R_NETDOWN); -#endif -#ifdef EHOSTDOWN case EHOSTDOWN: return (ISC_R_HOSTDOWN); -#endif -#ifdef ENETUNREACH case ENETUNREACH: return (ISC_R_NETUNREACH); -#endif -#ifdef EHOSTUNREACH case EHOSTUNREACH: return (ISC_R_HOSTUNREACH); -#endif -#ifdef EADDRINUSE case EADDRINUSE: return (ISC_R_ADDRINUSE); -#endif case EADDRNOTAVAIL: return (ISC_R_ADDRNOTAVAIL); case ECONNREFUSED: |
