diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2024-08-21 14:20:01 +1000 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2024-08-21 11:59:58 +0200 |
commit | c67989466865d0a3d0a327d8b0d191686e81d8ba (patch) | |
tree | 70efe6becc5928c9e5d8b8b9469e68322f97fcad /util.c | |
parent | ceea52ca9310054cdc822552c4066073bd513ac4 (diff) | |
download | passt-c67989466865d0a3d0a327d8b0d191686e81d8ba.tar passt-c67989466865d0a3d0a327d8b0d191686e81d8ba.tar.gz passt-c67989466865d0a3d0a327d8b0d191686e81d8ba.tar.bz2 passt-c67989466865d0a3d0a327d8b0d191686e81d8ba.tar.lz passt-c67989466865d0a3d0a327d8b0d191686e81d8ba.tar.xz passt-c67989466865d0a3d0a327d8b0d191686e81d8ba.tar.zst passt-c67989466865d0a3d0a327d8b0d191686e81d8ba.zip |
conf: Use array indices rather than pointers for DNS array slots
Currently add_dns[46]() take a somewhat awkward double pointer to the
entry in the c->ip[46].dns array to update. It turns out to be easier to
work with indices into that array instead.
This diff does add some lines, but it's comments, and will allow some
future code reductions.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'util.c')
0 files changed, 0 insertions, 0 deletions