resolved: make dns_transaction_gc return a pointer
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 16 Feb 2021 13:10:28 +0000 (14:10 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 16 Feb 2021 13:27:59 +0000 (14:27 +0100)
commit1f38830153b493b1acc7d1422f5aefd88228d373
treeaf651aa5468ddad631065d1cb4a44fd45608ba62
parentd3b56a0cad6c397e020b5dc2105cf49ca3d92c42
resolved: make dns_transaction_gc return a pointer

_gc() does cleanup if it is possible. So far it returned a bool to
signal if it succeeded (false on success). When working on the resolved
code I had to look at the definition every time, because the (arguably
reversed) calling convention is unobvious. So let's return a pointer
(non-NULL: gc has not been done, NULL: gc has been done).

This fits nicely with the standard to return a pointer from all free
functions obviously.
src/resolve/resolved-dns-transaction.c
src/resolve/resolved-dns-transaction.h