summaryrefslogtreecommitdiff
path: root/src/update-utmp
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2020-04-12 18:26:05 +0200
committerLennart Poettering <lennart@poettering.net>2020-04-13 09:31:49 +0200
commit38cd55b007c955ee1a5fd80d89086d4f930d802d (patch)
treeff14a30ae6d0994dbca76139ff3f74aeaf47b1cc /src/update-utmp
parent8cf85bb5750766cf0cff53b0b73be5a5a39279f5 (diff)
downloadsystemd-38cd55b007c955ee1a5fd80d89086d4f930d802d.tar.gz
Remove unneded {}s
$ perl -i -0pe 's|\s+{\n([^\n]*;)\n\s+}\n|\n\1\n|gms' **/*.c Inspired by ea7cbf5bdd68d7861ebf1570c439e8bbabd83f6c.
Diffstat (limited to 'src/update-utmp')
-rw-r--r--src/update-utmp/update-utmp.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/update-utmp/update-utmp.c b/src/update-utmp/update-utmp.c
index 55fd8ba46e..fd24cdc789 100644
--- a/src/update-utmp/update-utmp.c
+++ b/src/update-utmp/update-utmp.c
@@ -125,9 +125,8 @@ static int on_reboot(Context *c) {
#if HAVE_AUDIT
if (c->audit_fd >= 0)
if (audit_log_user_comm_message(c->audit_fd, AUDIT_SYSTEM_BOOT, "", "systemd-update-utmp", NULL, NULL, NULL, 1) < 0 &&
- errno != EPERM) {
+ errno != EPERM)
r = log_error_errno(errno, "Failed to send audit message: %m");
- }
#endif
/* If this call fails it will return 0, which
@@ -154,9 +153,8 @@ static int on_shutdown(Context *c) {
#if HAVE_AUDIT
if (c->audit_fd >= 0)
if (audit_log_user_comm_message(c->audit_fd, AUDIT_SYSTEM_SHUTDOWN, "", "systemd-update-utmp", NULL, NULL, NULL, 1) < 0 &&
- errno != EPERM) {
+ errno != EPERM)
r = log_error_errno(errno, "Failed to send audit message: %m");
- }
#endif
q = utmp_put_shutdown();