libc/libc/rpc: refactor some global variables
authorAlan Somers <asomers@FreeBSD.org>
Thu, 9 Nov 2023 22:58:56 +0000 (15:58 -0700)
committerAlan Somers <asomers@FreeBSD.org>
Wed, 15 Nov 2023 23:12:50 +0000 (16:12 -0700)
commita5c2f4e939430f0048136c39fb9fa6093d401905
tree392f8041d7b4b7a35c25625678bb84ceb29e2d02
parent6eda49b7bfd3a5e013bef54262dddf9a54a3be07
libc/libc/rpc: refactor some global variables

* Combine dg_fd_locks and dg_cv into one array.
* Similarly for vc_fd_locks and vc_cv
* Turn some macros into inline functions

This is a mostly cosmetic change to make refactoring these strutures in
a future commit easier.

MFC after: 2 weeks
Sponsored by: Axcient
Reviewed by: kib
Differential Revision: https://reviews.freebsd.org/D42597
lib/libc/rpc/clnt_dg.c
lib/libc/rpc/clnt_vc.c