diff options
| author | 2020-02-18 18:11:27 +0000 | |
|---|---|---|
| committer | 2020-02-18 18:11:27 +0000 | |
| commit | 8b5538545d486ecceb041780b03e8ef5e76cedd6 (patch) | |
| tree | 97ecca45f41f25f5899a36b8e5e57742e8985ed8 /usr.bin/dig/lib/isc/bufferlist.c | |
| parent | Remove unused task, taskmgr, app, socket and socketmgr methods. (diff) | |
| download | wireguard-openbsd-8b5538545d486ecceb041780b03e8ef5e76cedd6.tar.xz wireguard-openbsd-8b5538545d486ecceb041780b03e8ef5e76cedd6.zip | |
Get rid of ISC_MAGIC and ISC_MAGIC_VALID macros.
While pulling on that it turns out we can / need git rid of a isc_task
-> isc__task, isc_taskmgr -> isc__taskmgr, isc_timer -> isc__timer and
isc_socket -> isc__socket indirection.
OK millert
Diffstat (limited to 'usr.bin/dig/lib/isc/bufferlist.c')
| -rw-r--r-- | usr.bin/dig/lib/isc/bufferlist.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/usr.bin/dig/lib/isc/bufferlist.c b/usr.bin/dig/lib/isc/bufferlist.c index 22dd18937a4..33e428efe37 100644 --- a/usr.bin/dig/lib/isc/bufferlist.c +++ b/usr.bin/dig/lib/isc/bufferlist.c @@ -14,7 +14,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: bufferlist.c,v 1.1 2020/02/07 09:58:53 florian Exp $ */ +/* $Id: bufferlist.c,v 1.2 2020/02/18 18:11:27 florian Exp $ */ /*! \file */ @@ -36,7 +36,6 @@ isc_bufferlist_usedcount(isc_bufferlist_t *bl) { length = 0; buffer = ISC_LIST_HEAD(*bl); while (buffer != NULL) { - REQUIRE(ISC_BUFFER_VALID(buffer)); length += isc_buffer_usedlength(buffer); buffer = ISC_LIST_NEXT(buffer, link); } @@ -54,7 +53,6 @@ isc_bufferlist_availablecount(isc_bufferlist_t *bl) { length = 0; buffer = ISC_LIST_HEAD(*bl); while (buffer != NULL) { - REQUIRE(ISC_BUFFER_VALID(buffer)); length += isc_buffer_availablelength(buffer); buffer = ISC_LIST_NEXT(buffer, link); } |
