From 176c355b43e616b61552566303ad59d5fd910333 Mon Sep 17 00:00:00 2001 From: Beniamino Galvani Date: Fri, 10 Jul 2015 18:43:12 +0200 Subject: lldp: export opaque TLV type and accessor functions Export struct tlv_packet as a public opaque sd_lldp_packet type and make its accessor functions public. --- src/libsystemd-network/test-lldp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libsystemd-network/test-lldp.c') diff --git a/src/libsystemd-network/test-lldp.c b/src/libsystemd-network/test-lldp.c index 06545aee59..26f64347a7 100644 --- a/src/libsystemd-network/test-lldp.c +++ b/src/libsystemd-network/test-lldp.c @@ -38,7 +38,7 @@ static struct ether_addr mac_addr = { }; static int lldp_build_tlv_packet(tlv_packet **ret) { - _cleanup_tlv_packet_free_ tlv_packet *m = NULL; + _cleanup_lldp_packet_unref_ tlv_packet *m = NULL; const uint8_t lldp_dst[] = LLDP_MULTICAST_ADDR; struct ether_header ether = { .ether_type = htons(ETHERTYPE_LLDP), @@ -216,7 +216,7 @@ static int lldp_parse_tlv_packet(tlv_packet *m, int len) { } int main(int argc, char *argv[]) { - _cleanup_tlv_packet_free_ tlv_packet *tlv = NULL; + _cleanup_lldp_packet_unref_ tlv_packet *tlv = NULL; /* form a packet */ lldp_build_tlv_packet(&tlv); -- cgit v1.2.3-54-g00ecf