summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
Diffstat (limited to 'src/core')
-rw-r--r--src/core/killall.h5
-rw-r--r--src/core/switch-root.h5
-rw-r--r--src/core/syscall-list.h5
-rw-r--r--src/core/transaction.h5
4 files changed, 4 insertions, 16 deletions
diff --git a/src/core/killall.h b/src/core/killall.h
index d08ac142f0..95b110fae1 100644
--- a/src/core/killall.h
+++ b/src/core/killall.h
@@ -1,7 +1,6 @@
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
-#ifndef fookillallhfoo
-#define fookillallhfoo
+#pragma once
/***
This file is part of systemd.
@@ -23,5 +22,3 @@
***/
void broadcast_signal(int sig, bool wait);
-
-#endif
diff --git a/src/core/switch-root.h b/src/core/switch-root.h
index 0c4cd1e403..ab493b5fb1 100644
--- a/src/core/switch-root.h
+++ b/src/core/switch-root.h
@@ -1,7 +1,6 @@
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
-#ifndef fooswitchroothfoo
-#define fooswitchroothfoo
+#pragma once
/***
This file is part of systemd.
@@ -23,5 +22,3 @@
***/
int switch_root(const char *switch_root);
-
-#endif
diff --git a/src/core/syscall-list.h b/src/core/syscall-list.h
index 6bb4d91f91..37efc5681d 100644
--- a/src/core/syscall-list.h
+++ b/src/core/syscall-list.h
@@ -1,7 +1,6 @@
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
-#ifndef foosyscalllisthfoo
-#define foosyscalllisthfoo
+#pragma once
/***
This file is part of systemd.
@@ -40,5 +39,3 @@ const char *syscall_to_name(int id);
int syscall_from_name(const char *name);
int syscall_max(void);
-
-#endif
diff --git a/src/core/transaction.h b/src/core/transaction.h
index 12f9194927..b6ee237ef8 100644
--- a/src/core/transaction.h
+++ b/src/core/transaction.h
@@ -1,7 +1,6 @@
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
-#ifndef footransactionhfoo
-#define footransactionhfoo
+#pragma once
/***
This file is part of systemd.
@@ -53,5 +52,3 @@ int transaction_add_job_and_dependencies(
int transaction_activate(Transaction *tr, Manager *m, JobMode mode, DBusError *e);
int transaction_add_isolate_jobs(Transaction *tr, Manager *m);
void transaction_abort(Transaction *tr);
-
-#endif