summaryrefslogtreecommitdiff
path: root/src/libsystemd-network/lldp-port.c
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2014-12-19 22:42:03 +0100
committerTom Gundersen <teg@jklm.no>2014-12-19 22:42:03 +0100
commit7a6f1457462840ed52f2a332e2bd56ca210cff2d (patch)
tree6b5edb9a071082233c0ed042e2a6f44cdd07d96c /src/libsystemd-network/lldp-port.c
parent2cd3aa24820e5d82375c8cc3e4446d884ee4fee0 (diff)
sd-lldp: minor header cleanup
* (potentially) public headers must reside in src/systemd/ (not in src/libsystemd*) * some private (not prefixed with sd_) functions moved from sd-lldp.h to lldp-internal.h * introduce lldp-util.h for the cleanup macro, as these should not be public * rename the cleanup macro, we always name them _cleanup_foo_, never _cleanup_sd_foo_ * mark some function arguments as 'const'
Diffstat (limited to 'src/libsystemd-network/lldp-port.c')
-rw-r--r--src/libsystemd-network/lldp-port.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd-network/lldp-port.c b/src/libsystemd-network/lldp-port.c
index 12b72eedc7..aa6a3b9224 100644
--- a/src/libsystemd-network/lldp-port.c
+++ b/src/libsystemd-network/lldp-port.c
@@ -83,7 +83,7 @@ void lldp_port_free(lldp_port *p) {
}
int lldp_port_new(int ifindex,
- char *ifname,
+ const char *ifname,
const struct ether_addr *addr,
void *userdata,
lldp_port **ret) {