diff options
author | ume <ume@FreeBSD.org> | 2006-12-15 20:59:55 +0000 |
---|---|---|
committer | ume <ume@FreeBSD.org> | 2006-12-15 20:59:55 +0000 |
commit | 705f242eca7e1a52b43a762cced4eaa8de4c0818 (patch) | |
tree | 2cc733581f24f5c52484da3c954755891790e893 /lib/libc/isc/eventlib_p.h | |
parent | bf42d1f92c9ee728800e7dea18fc78216171bddb (diff) | |
download | FreeBSD-src-705f242eca7e1a52b43a762cced4eaa8de4c0818.zip FreeBSD-src-705f242eca7e1a52b43a762cced4eaa8de4c0818.tar.gz |
Merge BIND9 9.3.3 into main chunk.
Obtained from: ISC
MFC after: 1 week
Diffstat (limited to 'lib/libc/isc/eventlib_p.h')
-rw-r--r-- | lib/libc/isc/eventlib_p.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libc/isc/eventlib_p.h b/lib/libc/isc/eventlib_p.h index 1335de7..256279e 100644 --- a/lib/libc/isc/eventlib_p.h +++ b/lib/libc/isc/eventlib_p.h @@ -18,7 +18,7 @@ /* eventlib_p.h - private interfaces for eventlib * vix 09sep95 [initial] * - * $Id: eventlib_p.h,v 1.3.2.1.4.3 2005/07/28 07:43:20 marka Exp $ + * $Id: eventlib_p.h,v 1.3.2.1.4.4 2006/03/10 00:17:21 marka Exp $ * $FreeBSD$ */ @@ -48,6 +48,8 @@ #define EV_MASK_ALL (EV_READ | EV_WRITE | EV_EXCEPT) #define EV_ERR(e) return (errno = (e), -1) #define OK(x) if ((x) < 0) EV_ERR(errno); else (void)NULL +#define OKFREE(x, y) if ((x) < 0) { FREE((y)); EV_ERR(errno); } \ + else (void)NULL #define NEW(p) if (((p) = memget(sizeof *(p))) != NULL) \ FILL(p); \ |