summaryrefslogtreecommitdiff
path: root/src/libsystemd-network/test-lldp.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2016-02-16 19:26:40 +0100
committerLennart Poettering <lennart@poettering.net>2016-02-20 22:42:29 +0100
commit032b27f53452b224ce233381f9e5631998f80ea8 (patch)
treefd3ee77ed15a570953a6c6d2e151305d4e79aee3 /src/libsystemd-network/test-lldp.c
parent2139d247bd2909be5a1991b96aaf305136131244 (diff)
sd-lldp: drop "port" object
Let's just keep the few parts we actually need of it in the main sd_lldp object, so that we can simplify things quite a bit. While we are at it, remove ifname and mac fields which we make no use of whatsoever.
Diffstat (limited to 'src/libsystemd-network/test-lldp.c')
-rw-r--r--src/libsystemd-network/test-lldp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd-network/test-lldp.c b/src/libsystemd-network/test-lldp.c
index ed923d5cb3..7b8dd0ad88 100644
--- a/src/libsystemd-network/test-lldp.c
+++ b/src/libsystemd-network/test-lldp.c
@@ -259,7 +259,7 @@ static void lldp_handler (sd_lldp *lldp, int event, void *userdata) {
static int start_lldp(sd_lldp **lldp, sd_event *e, sd_lldp_callback_t cb, void *cb_data) {
int r;
- r = sd_lldp_new(42, "dummy", &mac_addr, lldp);
+ r = sd_lldp_new(42, lldp);
if (r)
return r;