summaryrefslogtreecommitdiff
path: root/src/usr.bin
diff options
context:
space:
mode:
authortb <>2021-12-28 16:37:37 +0000
committertb <>2021-12-28 16:37:37 +0000
commit9555e42d8ea896fd922a012b68616d33478f64e1 (patch)
treea3a40256db534977a2386ad59ab473a6a8d2497b /src/usr.bin
parentc5e2fed5aebe8491f8f9f05ec8e17fa61fbfca9f (diff)
downloadopenbsd-9555e42d8ea896fd922a012b68616d33478f64e1.tar.gz
openbsd-9555e42d8ea896fd922a012b68616d33478f64e1.tar.bz2
openbsd-9555e42d8ea896fd922a012b68616d33478f64e1.zip
Add a few accessors for IPAddressFamily and make first use of them
One reason why this file is hard to read are endless repetitions of checks and assignments reaching deep inside structs. This can be made much more readable by adding a bunch of accessors. As a first step, we deal with IPAddressFamily, where we want to check the type of the ipAddressChoice member, check whether the inheritance element is present or access the addressOrRanges field. This diff already makes minimal use of these accessors to appease -Werror. More use and additional accessors will follow in later passes. ok inoguchi jsing
Diffstat (limited to 'src/usr.bin')
0 files changed, 0 insertions, 0 deletions