summaryrefslogtreecommitdiff
path: root/src/libsystemd-network
diff options
context:
space:
mode:
Diffstat (limited to 'src/libsystemd-network')
-rw-r--r--src/libsystemd-network/lldp-internal.c14
-rw-r--r--src/libsystemd-network/sd-lldp.c2
2 files changed, 8 insertions, 8 deletions
diff --git a/src/libsystemd-network/lldp-internal.c b/src/libsystemd-network/lldp-internal.c
index dee4ea474c..0f354461f7 100644
--- a/src/libsystemd-network/lldp-internal.c
+++ b/src/libsystemd-network/lldp-internal.c
@@ -61,7 +61,7 @@ int lldp_read_chassis_id(tlv_packet *tlv,
*type = subtype;
out1:
- (void)lldp_tlv_packet_exit_container(tlv);
+ (void) lldp_tlv_packet_exit_container(tlv);
out2:
return r;
@@ -113,7 +113,7 @@ int lldp_read_port_id(tlv_packet *tlv,
*type = subtype;
out1:
- (void)lldp_tlv_packet_exit_container(tlv);
+ (void) lldp_tlv_packet_exit_container(tlv);
out2:
return r;
@@ -130,7 +130,7 @@ int lldp_read_ttl(tlv_packet *tlv, uint16_t *ttl) {
r = tlv_packet_read_u16(tlv, ttl);
- (void)lldp_tlv_packet_exit_container(tlv);
+ (void) lldp_tlv_packet_exit_container(tlv);
out:
return r;
@@ -155,7 +155,7 @@ int lldp_read_system_name(tlv_packet *tlv,
*data = (char *) s;
out:
- (void)lldp_tlv_packet_exit_container(tlv);
+ (void) lldp_tlv_packet_exit_container(tlv);
return r;
}
@@ -179,7 +179,7 @@ int lldp_read_system_description(tlv_packet *tlv,
*data = (char *) s;
out:
- (void)lldp_tlv_packet_exit_container(tlv);
+ (void) lldp_tlv_packet_exit_container(tlv);
return r;
}
@@ -203,7 +203,7 @@ int lldp_read_port_description(tlv_packet *tlv,
*data = (char *) s;
out:
- (void)lldp_tlv_packet_exit_container(tlv);
+ (void) lldp_tlv_packet_exit_container(tlv);
return r;
}
@@ -224,7 +224,7 @@ int lldp_read_system_capability(tlv_packet *tlv, uint16_t *data) {
return 0;
out:
- (void)lldp_tlv_packet_exit_container(tlv);
+ (void) lldp_tlv_packet_exit_container(tlv);
return r;
}
diff --git a/src/libsystemd-network/sd-lldp.c b/src/libsystemd-network/sd-lldp.c
index 0821730330..fddda97f52 100644
--- a/src/libsystemd-network/sd-lldp.c
+++ b/src/libsystemd-network/sd-lldp.c
@@ -519,7 +519,7 @@ int sd_lldp_save(sd_lldp *lldp, const char *lldp_file) {
free(s);
s = k;
- (void)lldp_read_system_capability(p->packet, &data);
+ (void) lldp_read_system_capability(p->packet, &data);
sprintf(buf, "'_CAP=%x'", data);