]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: resolvers: merge address and target into a union "data"
authorWilly Tarreau <w@1wt.eu>
Thu, 14 Oct 2021 20:52:04 +0000 (22:52 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 14 Oct 2021 20:52:04 +0000 (22:52 +0200)
commitcc8fd4c0404523101f4d1473bcd8589086da022d
treec36cd65beaeb7409f41f2ec58243e7c475d11e14
parentb4ca0195a9591614bfcebe9b7fe80c1ce9f94d8d
MINOR: resolvers: merge address and target into a union "data"

These two fields are exclusive as they depend on the data type.
Let's move them into a union to save some precious bytes. This
reduces the struct resolv_answer_item size from 600 to 576 bytes.
include/haproxy/resolvers-t.h
src/resolvers.c