From: Zbigniew Jędrzejewski-Szmek Date: Thu, 5 Oct 2023 16:38:31 +0000 (+0200) Subject: fuzz-bus-match: drop unnecessary wrapper function X-Git-Tag: v255-rc1~302^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f6210525cca166029cac8b845ef166ed1dfc8e67;p=thirdparty%2Fsystemd.git fuzz-bus-match: drop unnecessary wrapper function Same confusion as in previous commit. --- diff --git a/src/libsystemd/sd-bus/fuzz-bus-match.c b/src/libsystemd/sd-bus/fuzz-bus-match.c index b79494d8889..f7f12746e5c 100644 --- a/src/libsystemd/sd-bus/fuzz-bus-match.c +++ b/src/libsystemd/sd-bus/fuzz-bus-match.c @@ -9,8 +9,6 @@ #include "fuzz.h" #include "memstream-util.h" -DEFINE_TRIVIAL_DESTRUCTOR(bus_match_donep, struct bus_match_node, bus_match_free); - int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { _cleanup_(memstream_done) MemStream m = {}; _cleanup_(sd_bus_unrefp) sd_bus *bus = NULL; @@ -28,7 +26,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { r = sd_bus_new(&bus); assert_se(r >= 0); - _cleanup_(bus_match_donep) struct bus_match_node root = { + _cleanup_(bus_match_free) struct bus_match_node root = { .type = BUS_MATCH_ROOT, };