]> git.ipfire.org Git - thirdparty/bind9.git/commit
Add ISC_{LIST,LINK}_INITIALIZER for designated initializers
authorOndřej Surý <ondrej@isc.org>
Tue, 18 Oct 2022 09:15:57 +0000 (11:15 +0200)
committerOndřej Surý <ondrej@isc.org>
Tue, 18 Oct 2022 12:30:49 +0000 (14:30 +0200)
commita317b2ea1c1fc1ce5f6adbec2bb67a10ab7dad39
tree1f9578c3c3f527a73090ed1c31078976064096ab
parent3c34c54b6c6c334a11ff34b1885c0482cf08958b
Add ISC_{LIST,LINK}_INITIALIZER for designated initializers

Since we are using designated initializers, we were missing initializers
for ISC_LIST and ISC_LINK, add them, so you can do

    *foo = (foo_t){ .list = ISC_LIST_INITIALIZER };

Instead of:

    *foo = (foo_t){ 0 };
    ISC_LIST_INIT(foo->list);

(cherry picked from commit cb3c36b8bf926e208b9817926d40cf7956f34b67)
lib/isc/include/isc/list.h