diff options
author | 2020-02-15 11:49:01 +0000 | |
---|---|---|
committer | 2020-02-15 11:49:01 +0000 | |
commit | 5cbe9ad1122054ffaa734c0282e6961ef40b5000 (patch) | |
tree | 42361b33b2aaef358f17f854602d3468c0fc5f3d | |
parent | Don't touch the phase bit at nvme_poll_done(). This makes dumpsys() (diff) | |
download | wireguard-openbsd-5cbe9ad1122054ffaa734c0282e6961ef40b5000.tar.xz wireguard-openbsd-5cbe9ad1122054ffaa734c0282e6961ef40b5000.zip |
remove unused lockid var and FDLOCK_ID macro
-rw-r--r-- | usr.bin/dig/lib/isc/unix/socket.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/usr.bin/dig/lib/isc/unix/socket.c b/usr.bin/dig/lib/isc/unix/socket.c index 3c447ff7f22..c244c5153fa 100644 --- a/usr.bin/dig/lib/isc/unix/socket.c +++ b/usr.bin/dig/lib/isc/unix/socket.c @@ -60,11 +60,6 @@ struct isc_socketwait { int isc_dscp_check_value = -1; /*% - * Size of per-FD lock buckets. - */ -#define FDLOCK_ID(fd) 0 - -/*% * Some systems define the socket length argument as an int, some as size_t, * some as socklen_t. This is here so it can be easily changed if needed. */ @@ -1427,7 +1422,6 @@ socket_create(isc_socketmgr_t *manager0, int pf, isc_sockettype_t type, isc__socket_t *sock = NULL; isc__socketmgr_t *manager = (isc__socketmgr_t *)manager0; isc_result_t result; - int lockid; REQUIRE(VALID_MANAGER(manager)); REQUIRE(socketp != NULL && *socketp == NULL); @@ -1464,7 +1458,6 @@ socket_create(isc_socketmgr_t *manager0, int pf, isc_sockettype_t type, * there are no external references to it yet. */ - lockid = FDLOCK_ID(sock->fd); manager->fds[sock->fd] = sock; manager->fdstate[sock->fd] = MANAGED; |