summaryrefslogtreecommitdiff
path: root/src/libsystemd-network
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2018-04-19 12:13:23 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2018-04-19 12:13:23 +0200
commit5d13a15b1d0bd7d218100d204a84eaaaaeab932f (patch)
tree08d1ba916131ac128453713792cd8498b556de3a /src/libsystemd-network
parent6360b8ff8383bb69978e6278298b4a2bef329f25 (diff)
downloadsystemd-5d13a15b1d0bd7d218100d204a84eaaaaeab932f.tar.gz
tree-wide: drop spurious newlines (#8764)
Double newlines (i.e. one empty lines) are great to structure code. But let's avoid triple newlines (i.e. two empty lines), quadruple newlines, quintuple newlines, …, that's just spurious whitespace. It's an easy way to drop 121 lines of code, and keeps the coding style of our sources a bit tigther.
Diffstat (limited to 'src/libsystemd-network')
-rw-r--r--src/libsystemd-network/lldp-neighbor.c1
-rw-r--r--src/libsystemd-network/network-internal.c1
-rw-r--r--src/libsystemd-network/test-dhcp6-client.c1
3 files changed, 0 insertions, 3 deletions
diff --git a/src/libsystemd-network/lldp-neighbor.c b/src/libsystemd-network/lldp-neighbor.c
index bba2e047da..4aee537fd5 100644
--- a/src/libsystemd-network/lldp-neighbor.c
+++ b/src/libsystemd-network/lldp-neighbor.c
@@ -328,7 +328,6 @@ int lldp_neighbor_parse(sd_lldp_neighbor *n) {
break;
}
-
p += length, left -= length;
}
diff --git a/src/libsystemd-network/network-internal.c b/src/libsystemd-network/network-internal.c
index 148281c59d..78ef1eb3cf 100644
--- a/src/libsystemd-network/network-internal.c
+++ b/src/libsystemd-network/network-internal.c
@@ -379,7 +379,6 @@ int config_parse_bridge_port_priority(
return 0;
}
-
void serialize_in_addrs(FILE *f, const struct in_addr *addresses, size_t size) {
unsigned i;
diff --git a/src/libsystemd-network/test-dhcp6-client.c b/src/libsystemd-network/test-dhcp6-client.c
index fc3a70d07d..f139484a86 100644
--- a/src/libsystemd-network/test-dhcp6-client.c
+++ b/src/libsystemd-network/test-dhcp6-client.c
@@ -571,7 +571,6 @@ static int test_client_verify_request(DHCP6Message *request, size_t len) {
assert_se(!found_iana);
found_iana = true;
-
assert_se(optlen == 40);
assert_se(!memcmp(optval, &test_iaid, sizeof(test_iaid)));