summaryrefslogtreecommitdiff
path: root/src/shared
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2019-07-15 01:59:14 +0900
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2019-07-15 18:41:27 +0200
commit8cec0a5c32c22c8982d4cb2a1f953ed0d0a36589 (patch)
tree4f12b44280ee1b869c7cc6777d421729307863a2 /src/shared
parent8eb0cafeb0aa6687e02f45e92e60fdbad7c485c0 (diff)
downloadsystemd-8cec0a5c32c22c8982d4cb2a1f953ed0d0a36589.tar.gz
systemd-8cec0a5c32c22c8982d4cb2a1f953ed0d0a36589.tar.bz2
systemd-8cec0a5c32c22c8982d4cb2a1f953ed0d0a36589.zip
tree-wide: drop duplicated blank lines
``` $ for i in */*.[ch] */*/*.[ch]; do sed -e '/^$/ {N; s/\n$//g}' -i $i; done $ git checkout HEAD -- basic/linux shared/linux ```
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/bus-wait-for-units.c1
-rw-r--r--src/shared/journal-importer.c1
-rw-r--r--src/shared/logs-show.c1
-rw-r--r--src/shared/varlink.c1
4 files changed, 0 insertions, 4 deletions
diff --git a/src/shared/bus-wait-for-units.c b/src/shared/bus-wait-for-units.c
index d07f491e93..4ee2a2908d 100644
--- a/src/shared/bus-wait-for-units.c
+++ b/src/shared/bus-wait-for-units.c
@@ -366,7 +366,6 @@ int bus_wait_for_units_add_unit(
if (r < 0)
return log_debug_errno(r, "Failed to add reference to unit %s: %m", unit);
-
item->flags |= BUS_WAIT_REFFED;
}
diff --git a/src/shared/journal-importer.c b/src/shared/journal-importer.c
index 44032548ad..7c4fc7021d 100644
--- a/src/shared/journal-importer.c
+++ b/src/shared/journal-importer.c
@@ -23,7 +23,6 @@ enum {
IMPORTER_STATE_EOF, /* done */
};
-
void journal_importer_cleanup(JournalImporter *imp) {
if (imp->fd >= 0 && !imp->passive_fd) {
log_debug("Closing %s (fd=%d)", imp->name ?: "importer", imp->fd);
diff --git a/src/shared/logs-show.c b/src/shared/logs-show.c
index 21b3251034..b615c70dff 100644
--- a/src/shared/logs-show.c
+++ b/src/shared/logs-show.c
@@ -431,7 +431,6 @@ static int output_short(
if (priority_len == 1 && *priority >= '0' && *priority <= '7')
p = *priority - '0';
-
audit = streq_ptr(transport, "audit");
if (mode == OUTPUT_SHORT_MONOTONIC)
diff --git a/src/shared/varlink.c b/src/shared/varlink.c
index 54d48991e8..99343167f6 100644
--- a/src/shared/varlink.c
+++ b/src/shared/varlink.c
@@ -1874,7 +1874,6 @@ fail:
return r;
}
-
void varlink_detach_event(Varlink *v) {
if (!v)
return;