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.
This commit is contained in:
Lennart Poettering
2018-04-19 12:13:23 +02:00
committed by Zbigniew Jędrzejewski-Szmek
parent 6360b8ff83
commit 5d13a15b1d
91 changed files with 40 additions and 121 deletions
-1
View File
@@ -855,7 +855,6 @@ static const char *table_data_format(TableData *d) {
assert_not_reached("Unexpected type?");
}
return d->formatted;
}
-1
View File
@@ -24,7 +24,6 @@ const struct hash_ops string_hash_ops = {
.compare = string_compare_func
};
void path_hash_func(const void *p, struct siphash *state) {
const char *q = p;
size_t n;
-1
View File
@@ -856,7 +856,6 @@ const char *mount_propagation_flags_to_string(unsigned long flags) {
return NULL;
}
int mount_propagation_flags_from_string(const char *name, unsigned long *ret) {
if (isempty(name))
-1
View File
@@ -109,7 +109,6 @@ void initialize_srand(void) {
#endif
x = 0;
x ^= (unsigned) now(CLOCK_REALTIME);
x ^= (unsigned) gettid();
-1
View File
@@ -5,7 +5,6 @@
Copyright 2010 Lennart Poettering
***/
#include <sys/time.h>
#include "macro.h"
-1
View File
@@ -315,7 +315,6 @@ char* mac_selinux_free(char *label) {
if (!mac_selinux_use())
return NULL;
freecon(label);
#endif
-2
View File
@@ -664,7 +664,6 @@ int sockaddr_pretty(const struct sockaddr *_sa, socklen_t salen, bool translate_
return -EOPNOTSUPP;
}
*ret = p;
return 0;
}
@@ -1127,7 +1126,6 @@ int flush_accept(int fd) {
};
int r;
/* Similar to flush_fd() but flushes all incoming connection by accepting them and immediately closing them. */
for (;;) {