chiark / gitweb /
use #pragma once instead of foo*foo #define guards
authorShawn Landden <shawnlandden@gmail.com>
Wed, 18 Jul 2012 17:07:51 +0000 (10:07 -0700)
committerLennart Poettering <lennart@poettering.net>
Thu, 19 Jul 2012 10:30:59 +0000 (12:30 +0200)
 #pragma once has been "un-deprecated" in gcc since 3.3, and is widely supported
in other compilers.

I've been using and maintaining (rebasing) this patch for a while now, as
it annoyed me to see #ifndef fooblahfoo, etc all over the place,
almost arrogant about the annoyance of having to define all these names to
perform a commen but neccicary functionality, when a completely superior
alternative exists.

I havn't sent it till now, cause its kindof a style change, and it is bad
voodoo to mess with style that has been established by more established
editors. So feel free to lambast me as a crazy bafoon.

v2 - preserve externally used headers

95 files changed:
src/core/automount.h
src/core/build.h
src/core/bus-errors.h
src/core/cgroup-attr.h
src/core/cgroup.h
src/core/condition.h
src/core/dbus-automount.h
src/core/dbus-device.h
src/core/dbus-execute.h
src/core/dbus-job.h
src/core/dbus-manager.h
src/core/dbus-mount.h
src/core/dbus-path.h
src/core/dbus-service.h
src/core/dbus-snapshot.h
src/core/dbus-socket.h
src/core/dbus-swap.h
src/core/dbus-target.h
src/core/dbus-timer.h
src/core/dbus-unit.h
src/core/dbus.h
src/core/device.h
src/core/execute.h
src/core/fdset.h
src/core/hostname-setup.h
src/core/ima-setup.h
src/core/job.h
src/core/kmod-setup.h
src/core/load-dropin.h
src/core/load-fragment.h
src/core/locale-setup.h
src/core/loopback-setup.h
src/core/machine-id-setup.h
src/core/manager.h
src/core/mount-setup.h
src/core/mount.h
src/core/namespace.h
src/core/path.h
src/core/selinux-setup.h
src/core/service.h
src/core/snapshot.h
src/core/socket.h
src/core/special.h
src/core/swap.h
src/core/sysfs-show.h
src/core/target.h
src/core/tcpwrap.h
src/core/timer.h
src/core/umount.h
src/core/unit.h
src/journal/compress.h
src/journal/journal-def.h
src/journal/journal-file.h
src/journal/journal-internal.h
src/journal/journal-rate-limit.h
src/journal/journald.h
src/journal/lookup3.h
src/login/logind-acl.h
src/login/logind-device.h
src/login/logind-seat.h
src/login/logind-session.h
src/login/logind-user.h
src/login/logind.h
src/readahead/readahead-common.h
src/shared/acl-util.h
src/shared/ask-password-api.h
src/shared/cgroup-util.h
src/shared/conf-parser.h
src/shared/dbus-common.h
src/shared/dbus-loop.h
src/shared/def.h
src/shared/exit-status.h
src/shared/hashmap.h
src/shared/install.h
src/shared/label.h
src/shared/list.h
src/shared/log.h
src/shared/logs-show.h
src/shared/macro.h
src/shared/missing.h
src/shared/pager.h
src/shared/path-lookup.h
src/shared/polkit.h
src/shared/ratelimit.h
src/shared/set.h
src/shared/socket-util.h
src/shared/spawn-ask-password-agent.h
src/shared/specifier.h
src/shared/strv.h
src/shared/unit-name.h
src/shared/utf8.h
src/shared/util.h
src/shared/utmp-wtmp.h
src/shared/virt.h
src/shared/watchdog.h

index 5704502ef70a3bdfb3c627740250e2e49d8e723a..3d5736d1cb5d7a1ca368cece30aa648bee7ea5f0 100644 (file)
@@ -1,7 +1,6 @@
 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
 
-#ifndef fooautomounthfoo
-#define fooautomounthfoo
+#pragma once
 
 /***
   This file is part of systemd.
@@ -72,5 +71,3 @@ AutomountState automount_state_from_string(const char *s);
 
 const char* automount_result_to_string(AutomountResult i);
 AutomountResult automount_result_from_string(const char *s);
-
-#endif
index 4ccfab136127c58475105eb6005e58242e2c562b..0b38050bd48da290b3482c1523890b3d226b502a 100644 (file)
@@ -1,7 +1,6 @@
 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
 
-#ifndef foobuildhfoo
-#define foobuildhfoo
+#pragma once
 
 /***
   This file is part of systemd.
@@ -65,5 +64,3 @@
 #endif
 
 #define SYSTEMD_FEATURES _PAM_FEATURE_ " " _LIBWRAP_FEATURE_ " " _AUDIT_FEATURE_ " " _SELINUX_FEATURE_ " " _IMA_FEATURE_ " " _SYSVINIT_FEATURE_ " " _LIBCRYPTSETUP_FEATURE_
-
-#endif
index a6f055f0996becf3577ba7b6535efcf57e3405c0..04c1b2849d20f2cd5ef858aea0bcbfa742d503a6 100644 (file)
@@ -1,7 +1,6 @@
 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
 
-#ifndef foobuserrorshfoo
-#define foobuserrorshfoo
+#pragma once
 
 /***
   This file is part of systemd.
@@ -54,5 +53,3 @@ static inline const char *bus_error(const DBusError *e, int r) {
 
         return strerror(-r);
 }
-
-#endif
index 2b3c1aea9e0ddbabce61bc2610a412f6f35b74e3..2b754eac405a45cdc8842cb230c50db35769dc57 100644 (file)
@@ -1,7 +1,6 @@
 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
 
-#ifndef foocgroupattrhfoo
-#define foocgroupattrhfoo
+#pragma once
 
 /***
   This file is part of systemd.
@@ -45,5 +44,3 @@ int cgroup_attribute_apply_list(CGroupAttribute *first, CGroupBonding *b);
 CGroupAttribute *cgroup_attribute_find_list(CGroupAttribute *first, const char *controller, const char *name);
 
 void cgroup_attribute_free_list(CGroupAttribute *first);
-
-#endif
index 65fbe4da813ff08791c3f92fd6a7ae1e2d079bf8..229da52ba40ab8623686c9498ba10119269e419e 100644 (file)
@@ -1,7 +1,6 @@
 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
 
-#ifndef foocgrouphfoo
-#define foocgrouphfoo
+#pragma once
 
 /***
   This file is part of systemd.
@@ -90,5 +89,3 @@ int cgroup_bonding_get(Manager *m, const char *cgroup, CGroupBonding **bonding);
 int cgroup_notify_empty(Manager *m, const char *group);
 
 Unit* cgroup_unit_by_pid(Manager *m, pid_t pid);
-
-#endif
index 2d1f2cd17e57c28f5f6b5c9d3c3b87ea0264d650..3dca432f772abcf0ca875eb13ea569b0054ec310 100644 (file)
@@ -1,7 +1,6 @@
 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
 
-#ifndef fooconditionhfoo
-#define fooconditionhfoo
+#pragma once
 
 /***
   This file is part of systemd.
@@ -66,5 +65,3 @@ void condition_dump_list(Condition *c, FILE *f, const char *prefix);
 
 const char* condition_type_to_string(ConditionType t);
 int condition_type_from_string(const char *s);
-
-#endif
index 6849244b43bfd2fdf73a866d2b868289eab80545..b338e25fc12c92c96f877c04f40e16d2aa2f294c 100644 (file)
@@ -1,7 +1,6 @@
 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
 
-#ifndef foodbusautomounthfoo
-#define foodbusautomounthfoo
+#pragma once
 
 /***
   This file is part of systemd.
@@ -30,5 +29,3 @@ DBusHandlerResult bus_automount_message_handler(Unit *u, DBusConnection *c, DBus
 
 extern const char bus_automount_interface[];
 extern const char bus_automount_invalidating_properties[];
-
-#endif
index 068adee5b89841bd533f6373ce1f251c2af7d6a7..311e0685d17e2f2099d0ae2f44ae581cc35ab64c 100644 (file)
@@ -1,7 +1,6 @@
 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
 
-#ifndef foodbusdevicehfoo
-#define foodbusdevicehfoo
+#pragma once
 
 /***
   This file is part of systemd.
@@ -30,5 +29,3 @@ DBusHandlerResult bus_device_message_handler(Unit *u, DBusConnection *c, DBusMes
 
 extern const char bus_device_interface[];
 extern const char bus_device_invalidating_properties[];
-
-#endif
index dc267e6ccc505ca886c234a17ea9703cf40b51f1..feb883335f4d9fa850f2c9b4db3cb027da7b50a3 100644 (file)
@@ -1,7 +1,6 @@
 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
 
-#ifndef foodbusexecutehfoo
-#define foodbusexecutehfoo
+#pragma once
 
 /***
   This file is part of systemd.
@@ -124,5 +123,3 @@ int bus_execute_append_command(DBusMessageIter *u, const char *property, void *d
 int bus_execute_append_kill_mode(DBusMessageIter *i, const char *property, void *data);
 int bus_execute_append_env_files(DBusMessageIter *i, const char *property, void *data);
 int bus_execute_append_syscall_filter(DBusMessageIter *i, const char *property, void *data);
-
-#endif
index 1ee0a4279397c2e24891b9a86652309a7b6cc658..a1b928fb16ab4376c7bfc79b4d754b9775c67c34 100644 (file)
@@ -1,7 +1,6 @@
 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
 
-#ifndef foodbusjobhfoo
-#define foodbusjobhfoo
+#pragma once
 
 /***
   This file is part of systemd.
@@ -32,5 +31,3 @@ void bus_job_send_removed_signal(Job *j);
 extern const DBusObjectPathVTable bus_job_vtable;
 
 extern const char bus_job_interface[];
-
-#endif
index 0563b324f3bb12a8ff7cc64a3ca00fe531574c4e..f0dce5a2e947ee040de37cf0dc0aa07d3081ba34 100644 (file)
@@ -1,7 +1,6 @@
 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
 
-#ifndef foodbusmanagerhfoo
-#define foodbusmanagerhfoo
+#pragma once
 
 /***
   This file is part of systemd.
@@ -27,5 +26,3 @@
 extern const DBusObjectPathVTable bus_manager_vtable;
 
 extern const char bus_manager_interface[];
-
-#endif
index 097421396e90aa3a7f5119eab548e60356ef36f9..8597394373ebc44bc70975d0e3538ed276549841 100644 (file)
@@ -1,7 +1,6 @@
 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
 
-#ifndef foodbusmounthfoo
-#define foodbusmounthfoo
+#pragma once
 
 /***
   This file is part of systemd.
@@ -30,5 +29,3 @@ DBusHandlerResult bus_mount_message_handler(Unit *u, DBusConnection *c, DBusMess
 
 extern const char bus_mount_interface[];
 extern const char bus_mount_invalidating_properties[];
-
-#endif
index db2d5b9161a28f998432a25fb058162b073fad1b..c945f7d588bdeff86a7dc4128d20810b4ceb4299 100644 (file)
@@ -1,7 +1,6 @@
 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
 
-#ifndef foodbuspathhfoo
-#define foodbuspathhfoo
+#pragma once
 
 /***
   This file is part of systemd.
@@ -31,5 +30,3 @@ DBusHandlerResult bus_path_message_handler(Unit *u, DBusConnection *c, DBusMessa
 extern const char bus_path_interface[];
 
 extern const char bus_path_invalidating_properties[];
-
-#endif
index 27f65f5c9867dd33018b0a5dce76e1fbb324417a..143aed7ae59aad850fe2cebaab102ff923fe4f1f 100644 (file)
@@ -1,7 +1,6 @@
 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
 
-#ifndef foodbusservicehfoo
-#define foodbusservicehfoo
+#pragma once
 
 /***
   This file is part of systemd.
@@ -30,5 +29,3 @@ DBusHandlerResult bus_service_message_handler(Unit *u, DBusConnection *c, DBusMe
 
 extern const char bus_service_interface[];
 extern const char bus_service_invalidating_properties[];
-
-#endif
index fea13872aa0297f44f43482fda0a1348bea70d12..1208aafff637cf44d7b56100ca2e5257683c4546 100644 (file)
@@ -1,7 +1,6 @@
 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
 
-#ifndef foodbussnapshothfoo
-#define foodbussnapshothfoo
+#pragma once
 
 /***
   This file is part of systemd.
@@ -29,5 +28,3 @@
 DBusHandlerResult bus_snapshot_message_handler(Unit *u, DBusConnection *c, DBusMessage *message);
 
 extern const char bus_snapshot_interface[];
-
-#endif
index eafb3af6b8e92986de6738b900f7e59fa96e9142..5369b22e5e6cbe72b7d6fadd07051db71429b6df 100644 (file)
@@ -1,7 +1,6 @@
 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
 
-#ifndef foodbussockethfoo
-#define foodbussockethfoo
+#pragma once
 
 /***
   This file is part of systemd.
@@ -30,5 +29,3 @@ DBusHandlerResult bus_socket_message_handler(Unit *u, DBusConnection *c, DBusMes
 
 extern const char bus_socket_interface[];
 extern const char bus_socket_invalidating_properties[];
-
-#endif
index 196756534be671942a6c0c066cb6a1bf7f0dd0eb..41fe4447ffdb195e9b402c55e54b31536d9c8ec9 100644 (file)
@@ -1,7 +1,6 @@
 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
 
-#ifndef foodbusswaphfoo
-#define foodbusswaphfoo
+#pragma once
 
 /***
   This file is part of systemd.
@@ -31,5 +30,3 @@ DBusHandlerResult bus_swap_message_handler(Unit *u, DBusConnection *c, DBusMessa
 
 extern const char bus_swap_interface[];
 extern const char bus_swap_invalidating_properties[];
-
-#endif
index f11cec7d211c040bceeb2027e0fe248c5bb0bbba..a8a0304c75bbbac077edc7a27f9deb3104af40ed 100644 (file)
@@ -1,7 +1,6 @@
 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
 
-#ifndef foodbustargethfoo
-#define foodbustargethfoo
+#pragma once
 
 /***
   This file is part of systemd.
@@ -29,5 +28,3 @@
 DBusHandlerResult bus_target_message_handler(Unit *u, DBusConnection *c, DBusMessage *message);
 
 extern const char bus_target_interface[];
-
-#endif
index daa26c8512a1d65e91d6c0cd25308b39f3d02316..9ac30501d14c3cb28bdb317d9450cca4e78f89c2 100644 (file)
@@ -1,7 +1,6 @@
 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
 
-#ifndef foodbustimerhfoo
-#define foodbustimerhfoo
+#pragma once
 
 /***
   This file is part of systemd.
@@ -30,5 +29,3 @@ DBusHandlerResult bus_timer_message_handler(Unit *u, DBusConnection *c, DBusMess
 
 extern const char bus_timer_interface[];
 extern const char bus_timer_invalidating_properties[];
-
-#endif
index d5902ee22a4c10a716bc264dae5243e74bd6fab3..5a3a9be5349779533f77595b41e57247a924c733 100644 (file)
@@ -1,7 +1,6 @@
 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
 
-#ifndef foodbusunithfoo
-#define foodbusunithfoo
+#pragma once
 
 /***
   This file is part of systemd.
@@ -138,5 +137,3 @@ void bus_unit_send_removed_signal(Unit *u);
 extern const DBusObjectPathVTable bus_unit_vtable;
 
 extern const char bus_unit_interface[];
-
-#endif
index ed0b1c7cece77ab6108adf5728cef0b42d142bd2..0502d7c251bcbc1a9ab15f50beacbb93b897a544 100644 (file)
@@ -1,7 +1,6 @@
 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
 
-#ifndef foodbushfoo
-#define foodbushfoo
+#pragma once
 
 /***
   This file is part of systemd.
@@ -49,5 +48,3 @@ void bus_broadcast_finished(Manager *m, usec_t kernel_usec, usec_t initrd_usec,
 #define BUS_PENDING_CALL_NAME(m, p) dbus_pending_call_get_data((p), (m)->name_data_slot)
 
 extern const char * const bus_interface_table[];
-
-#endif
index fa806575c9a6dd1e06a22d28aab222af4ce6cd14..3c4604f60ef8fc1f80465e3461fb4778a6f821f3 100644 (file)
@@ -1,7 +1,6 @@
 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
 
-#ifndef foodevicehfoo
-#define foodevicehfoo
+#pragma once
 
 /***
   This file is part of systemd.
@@ -55,5 +54,3 @@ void device_fd_event(Manager *m, int events);
 
 const char* device_state_to_string(DeviceState i);
 DeviceState device_state_from_string(const char *s);
-
-#endif
index 187165cdc26b1c113bdd679495de1f8e43aec528..09f246e161f4981eabdcb6503591d6497565de6d 100644 (file)
@@ -1,7 +1,6 @@
 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
 
-#ifndef fooexecutehfoo
-#define fooexecutehfoo
+#pragma once
 
 /***
   This file is part of systemd.
@@ -235,5 +234,3 @@ KillMode kill_mode_from_string(const char *s);
 
 const char *kill_who_to_string(KillWho k);
 KillWho kill_who_from_string(const char *s);
-
-#endif
index bb581724306ba8316b61db82d536f60747e2cb39..c3e408c8ad28d7873c09a4e43fa027ffe11f937b 100644 (file)
@@ -1,7 +1,6 @@
 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
 
-#ifndef foofdsethfoo
-#define foofdsethfoo
+#pragma once
 
 /***
   This file is part of systemd.
@@ -36,5 +35,3 @@ int fdset_remove(FDSet *s, int fd);
 int fdset_new_fill(FDSet **_s);
 
 int fdset_cloexec(FDSet *fds, bool b);
-
-#endif
index 9550b8c5abce134176cf20a42dfbd987fac3eab9..8dc3a9e1d87d66b6e4fe991622dffd0b84c4d469 100644 (file)
@@ -1,7 +1,6 @@
 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
 
-#ifndef foohostnamesetuphfoo
-#define foohostnamesetuphfoo
+#pragma once
 
 /***
   This file is part of systemd.
@@ -23,5 +22,3 @@
 ***/
 
 int hostname_setup(void);
-
-#endif
index 8de64bfdb1a6d606120675174029019f85e6884f..14b56d1fc2db4f5c3828cf2e8e25fad4b6eae0c1 100644 (file)
@@ -1,7 +1,6 @@
 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
 
-#ifndef fooimasetuphfoo
-#define fooimasetuphfoo
+#pragma once
 
 /***
   This file is part of systemd.
@@ -25,5 +24,3 @@
 ***/
 
 int ima_setup(void);
-
-#endif
index 3208e6c65ce1e8f6a9b25e17bda29a06d94ae3ac..349fb687cfbf1543c18dd18be5dd94104dcba7a6 100644 (file)
@@ -1,7 +1,6 @@
 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
 
-#ifndef foojobhfoo
-#define foojobhfoo
+#pragma once
 
 /***
   This file is part of systemd.
@@ -229,5 +228,3 @@ JobMode job_mode_from_string(const char *s);
 
 const char* job_result_to_string(JobResult t);
 JobResult job_result_from_string(const char *s);
-
-#endif
index faaaa9ab415a3194562986433e6d0dbf69c2abce..24dcdddfa45f7aeb4578714f9479b0f3e4143370 100644 (file)
@@ -1,7 +1,6 @@
 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
 
-#ifndef fookmodsetuphfoo
-#define fookmodsetuphfoo
+#pragma once
 
 /***
   This file is part of systemd.
@@ -23,5 +22,3 @@
 ***/
 
 int kmod_setup(void);
-
-#endif
index 0b613c53f18f9e401ba7446b900cfb2e53050d57..1d2fafeee68d5d59ba5990fdc921c32218449ff5 100644 (file)
@@ -1,7 +1,6 @@
 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
 
-#ifndef fooloaddropinhfoo
-#define fooloaddropinhfoo
+#pragma once
 
 /***
   This file is part of systemd.
@@ -27,5 +26,3 @@
 /* Read service data supplementary drop-in directories */
 
 int unit_load_dropin(Unit *u);
-
-#endif
index 543e32968f8057082d75caddfed0d17b50d02df7..24f738464cecfa628d3199ff6fa7d95a0be44c41 100644 (file)
@@ -1,7 +1,6 @@
 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
 
-#ifndef fooloadfragmenthfoo
-#define fooloadfragmenthfoo
+#pragma once
 
 /***
   This file is part of systemd.
@@ -87,5 +86,3 @@ int config_parse_syscall_filter(const char *filename, unsigned line, const char
 /* gperf prototypes */
 const struct ConfigPerfItem* load_fragment_gperf_lookup(const char *key, unsigned length);
 extern const char load_fragment_gperf_nulstr[];
-
-#endif
index 418fdfae1aac70ebd20b5ca5a8767db9f434af68..5a0f2f78885e07c2bacafc8955b647d77359e813 100644 (file)
@@ -1,7 +1,6 @@
 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
 
-#ifndef foolocalesetuphfoo
-#define foolocalesetuphfoo
+#pragma once
 
 /***
   This file is part of systemd.
@@ -23,5 +22,3 @@
 ***/
 
 int locale_setup(void);
-
-#endif
index cbb969e1e467f280787160b84afc9659682953a2..dd83cf13a7d1c55e8ceb2a501bfbf4c5d34c281e 100644 (file)
@@ -1,7 +1,6 @@
 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
 
-#ifndef fooloopbacksetuphfoo
-#define fooloopbacksetuphfoo
+#pragma once
 
 /***
   This file is part of systemd.
@@ -23,5 +22,3 @@
 ***/
 
 int loopback_setup(void);
-
-#endif
index 16f45d86d3033755ff36b72fbfbe44ada5418552..b9e6b4d674a636418055ad7909e9ea728683aa49 100644 (file)
@@ -1,7 +1,6 @@
 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
 
-#ifndef foomachineidsetuphfoo
-#define foomachineidsetuphfoo
+#pragma once
 
 /***
   This file is part of systemd.
@@ -23,5 +22,3 @@
 ***/
 
 int machine_id_setup(void);
-
-#endif
index 6c81f92d63db2dd4c1f7714f66dc5d560b40fecc..603c2dc31824dfbb68371b369ab4e66f3e460aec 100644 (file)
@@ -1,7 +1,6 @@
 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
 
-#ifndef foomanagerhfoo
-#define foomanagerhfoo
+#pragma once
 
 /***
   This file is part of systemd.
@@ -304,5 +303,3 @@ bool manager_get_show_status(Manager *m);
 
 const char *manager_running_as_to_string(ManagerRunningAs i);
 ManagerRunningAs manager_running_as_from_string(const char *s);
-
-#endif
index 720b66f76c547b96fecd67b0073fb04222ea7a78..4b521ad0e13453b6e6941fc5377bdc2af5bfd178 100644 (file)
@@ -1,7 +1,6 @@
 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
 
-#ifndef foomountsetuphfoo
-#define foomountsetuphfoo
+#pragma once
 
 /***
   This file is part of systemd.
@@ -32,5 +31,3 @@ int mount_cgroup_controllers(char ***join_controllers);
 
 bool mount_point_is_api(const char *path);
 bool mount_point_ignore(const char *path);
-
-#endif
index ad9efc34d5f86996aee6729fb3fbb1331be92825..9583eebe3aa198638c40bc957258c0b16fa79b7c 100644 (file)
@@ -1,7 +1,6 @@
 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
 
-#ifndef foomounthfoo
-#define foomounthfoo
+#pragma once
 
 /***
   This file is part of systemd.
@@ -118,5 +117,3 @@ MountExecCommand mount_exec_command_from_string(const char *s);
 
 const char* mount_result_to_string(MountResult i);
 MountResult mount_result_from_string(const char *s);
-
-#endif
index eb912e9e2da92b2f1e92cbc1809fabd975bb16d0..5d72ed91fbe6e80ee3bf56e5cc656bf87a6de9be 100644 (file)
@@ -1,7 +1,6 @@
 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
 
-#ifndef foonamespacehfoo
-#define foonamespacehfoo
+#pragma once
 
 /***
   This file is part of systemd.
@@ -30,5 +29,3 @@ int setup_namespace(
                 char **inaccessible,
                 bool private_tmp,
                 unsigned long flags);
-
-#endif
index 1b4d0d49d4deca7f51626853f9e191c7d1395688..77926888ae5795ddd10bbc83532b8abcb05460cc 100644 (file)
@@ -1,7 +1,6 @@
 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
 
-#ifndef foopathhfoo
-#define foopathhfoo
+#pragma once
 
 /***
   This file is part of systemd.
@@ -109,5 +108,3 @@ PathType path_type_from_string(const char *s);
 
 const char* path_result_to_string(PathResult i);
 PathResult path_result_from_string(const char *s);
-
-#endif
index e9a45f589afc20651e0a45d072ce0ec20ef9b981..39e2bc25bbdd9592e63e3f6b19542fa29ac18a0d 100644 (file)
@@ -1,7 +1,6 @@
 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
 
-#ifndef fooselinuxsetuphfoo
-#define fooselinuxsetuphfoo
+#pragma once
 
 /***
   This file is part of systemd.
@@ -25,5 +24,3 @@
 #include <stdbool.h>
 
 int selinux_setup(bool *loaded_policy);
-
-#endif
index 4a7287d82701e12648f4b3f7aa9af9e912cff7cd..5ad09d0acc9304b453e329be1e792db5a33fbe48 100644 (file)
@@ -1,7 +1,6 @@
 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
 
-#ifndef fooservicehfoo
-#define fooservicehfoo
+#pragma once
 
 /***
   This file is part of systemd.
@@ -216,5 +215,3 @@ ServiceResult service_result_from_string(const char *s);
 
 const char* start_limit_action_to_string(StartLimitAction i);
 StartLimitAction start_limit_action_from_string(const char *s);
-
-#endif
index 9c63216421cbe0243660d9a33ae3cb93105e12aa..9662d93164ca5479b7606b30fa57f9c64530371c 100644 (file)
@@ -1,7 +1,6 @@
 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
 
-#ifndef foosnapshothfoo
-#define foosnapshothfoo
+#pragma once
 
 /***
   This file is part of systemd.
@@ -49,5 +48,3 @@ void snapshot_remove(Snapshot *s);
 
 const char* snapshot_state_to_string(SnapshotState i);
 SnapshotState snapshot_state_from_string(const char *s);
-
-#endif
index 576506fef7fe6cca487f0631a9564e98a252e50c..508f00eb346b5a1a6f9cb1b3d4eea30815af0e51 100644 (file)
@@ -1,7 +1,6 @@
 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
 
-#ifndef foosockethfoo
-#define foosockethfoo
+#pragma once
 
 /***
   This file is part of systemd.
@@ -169,5 +168,3 @@ SocketExecCommand socket_exec_command_from_string(const char *s);
 
 const char* socket_result_to_string(SocketResult i);
 SocketResult socket_result_from_string(const char *s);
-
-#endif
index f71f07675b5e605e9a01056bff2129f055bc175b..e3004a518d642a8af3d16f0485e6d40758d14ea1 100644 (file)
@@ -1,7 +1,6 @@
 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
 
-#ifndef foospecialhfoo
-#define foospecialhfoo
+#pragma once
 
 /***
   This file is part of systemd.
@@ -86,5 +85,3 @@
 #define SPECIAL_RUNLEVEL3_TARGET "runlevel3.target"
 #define SPECIAL_RUNLEVEL4_TARGET "runlevel4.target"
 #define SPECIAL_RUNLEVEL5_TARGET "runlevel5.target"
-
-#endif
index ff12169b6822a03347977700608025dba6e59d19..d8888e17684628479f7e27f6c27a66a0b8d52a48 100644 (file)
@@ -1,7 +1,6 @@
 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
 
-#ifndef fooswaphfoo
-#define fooswaphfoo
+#pragma once
 
 /***
   This file is part of systemd.
@@ -119,5 +118,3 @@ SwapExecCommand swap_exec_command_from_string(const char *s);
 
 const char* swap_result_to_string(SwapResult i);
 SwapResult swap_result_from_string(const char *s);
-
-#endif
index 51d73fb1512c5ede6036a7daba132b8a6fd6a7aa..9ffd129c483b0d6d408cdd3d2699e4bb3fa3a178 100644 (file)
@@ -1,7 +1,6 @@
 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
 
-#ifndef foosysfsshowhfoo
-#define foosysfsshowhfoo
+#pragma once
 
 /***
   This file is part of systemd.
@@ -23,5 +22,3 @@
 ***/
 
 int show_sysfs(const char *seat, const char *prefix, unsigned columns);
-
-#endif
index 62bc34382bb7b825155adc4c00af0a070f9a627e..1676553add93e7cdb126eb86f4e4fb925a0ca89a 100644 (file)
@@ -1,7 +1,6 @@
 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
 
-#ifndef footargethfoo
-#define footargethfoo
+#pragma once
 
 /***
   This file is part of systemd.
@@ -43,5 +42,3 @@ extern const UnitVTable target_vtable;
 
 const char* target_state_to_string(TargetState i);
 TargetState target_state_from_string(const char *s);
-
-#endif
index 0c87b111ee53711d1cfd0ee57d0de0b741185e2a..3353b6596ee720646c889c528c35619b0d8fb06d 100644 (file)
@@ -1,7 +1,6 @@
 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
 
-#ifndef foolibwraphfoo
-#define foolibwraphfoo
+#pragma once
 
 /***
   This file is part of systemd.
@@ -25,5 +24,3 @@
 #include <stdbool.h>
 
 bool socket_tcpwrap(int fd, const char *name);
-
-#endif
index 985b460ab110f509d73d94d2fcaad691b9afed57..c6d1d42e44ea67de069e04168556fbb7ca612b14 100644 (file)
@@ -1,7 +1,6 @@
 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
 
-#ifndef footimerhfoo
-#define footimerhfoo
+#pragma once
 
 /***
   This file is part of systemd.
@@ -89,5 +88,3 @@ TimerBase timer_base_from_string(const char *s);
 
 const char* timer_result_to_string(TimerResult i);
 TimerResult timer_result_from_string(const char *s);
-
-#endif
index 2e2f9c181a0057c6f27d0f8f40288c8fa964f6ef..8439ffe58ff82a4233caaacc8f94b7e1bde835a8 100644 (file)
@@ -1,7 +1,6 @@
 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
 
-#ifndef fooumounthfoo
-#define fooumounthfoo
+#pragma once
 
 /***
   This file is part of systemd.
@@ -29,5 +28,3 @@ int swapoff_all(bool *changed);
 int loopback_detach_all(bool *changed);
 
 int dm_detach_all(bool *changed);
-
-#endif
index d0a5d641d0761760178302f400561d4f4014e6bf..635293ffb61b2bbce1f3c45428942875465953ee 100644 (file)
@@ -1,7 +1,6 @@
 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
 
-#ifndef foounithfoo
-#define foounithfoo
+#pragma once
 
 /***
   This file is part of systemd.
@@ -544,5 +543,3 @@ UnitActiveState unit_active_state_from_string(const char *s);
 
 const char *unit_dependency_to_string(UnitDependency i);
 UnitDependency unit_dependency_from_string(const char *s);
-
-#endif
index 1cdfe3d4818a6434d84a941f75921a497427c99a..b6f1aa0ed7006db326e65894bf2c4afbb0eaa5de 100644 (file)
@@ -1,7 +1,6 @@
 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
 
-#ifndef foocompresshfoo
-#define foocompresshfoo
+#pragma once
 
 /***
   This file is part of systemd.
@@ -34,5 +33,3 @@ bool uncompress_startswith(const void *src, uint64_t src_size,
                            void **buffer, uint64_t *buffer_size,
                            const void *prefix, uint64_t prefix_len,
                            uint8_t extra);
-
-#endif
index ac89e61d932053edf6a98635037f69d04a90b38d..096dd8ed831d97465789c46239330aa8757830a7 100644 (file)
@@ -1,7 +1,6 @@
 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
 
-#ifndef foojournaldefhfoo
-#define foojournaldefhfoo
+#pragma once
 
 /***
   This file is part of systemd.
@@ -182,5 +181,3 @@ _packed_ struct Header {
         le64_t n_data;
         le64_t n_fields;
 };
-
-#endif
index 1f7f73a78db9b7eacdc782713b35eaf721a93d2a..eed49e062f496871e4367231404a1b0e5dd3b4ac 100644 (file)
@@ -1,7 +1,6 @@
 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
 
-#ifndef foojournalfilehfoo
-#define foojournalfilehfoo
+#pragma once
 
 /***
   This file is part of systemd.
@@ -147,5 +146,3 @@ int journal_file_get_cutoff_realtime_usec(JournalFile *f, usec_t *from, usec_t *
 int journal_file_get_cutoff_monotonic_usec(JournalFile *f, sd_id128_t boot, usec_t *from, usec_t *to);
 
 bool journal_file_rotate_suggested(JournalFile *f);
-
-#endif
index 04f77540c91f8eaab4b69f63e1318581fcbbc753..d17fdb2e92a596606090613c3e09a5e8e70cfac0 100644 (file)
@@ -1,7 +1,6 @@
 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
 
-#ifndef foojournalinternalhfoo
-#define foojournalinternalhfoo
+#pragma once
 
 /***
   This file is part of systemd.
@@ -112,4 +111,3 @@ struct sd_journal {
 char *journal_make_match_string(sd_journal *j);
 void journal_print_header(sd_journal *j);
 
-#endif
index cbf526c64f19803aecd441c75e3a4510ea725944..648ab22786ad611408d6805e48f613d3555014b8 100644 (file)
@@ -1,7 +1,6 @@
 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
 
-#ifndef foojournalratelimithfoo
-#define foojournalratelimithfoo
+#pragma once
 
 /***
   This file is part of systemd.
@@ -30,5 +29,3 @@ typedef struct JournalRateLimit JournalRateLimit;
 JournalRateLimit *journal_rate_limit_new(usec_t interval, unsigned burst);
 void journal_rate_limit_free(JournalRateLimit *r);
 int journal_rate_limit_test(JournalRateLimit *r, const char *id, int priority, uint64_t available);
-
-#endif
index 3537a494205eb652ab9b9c71596ebe06dd0ed96b..acf19b4e7ad13de819959d6b3a3bde7f018455f3 100644 (file)
@@ -1,7 +1,6 @@
 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
 
-#ifndef foojournaldhfoo
-#define foojournaldhfoo
+#pragma once
 
 /***
   This file is part of systemd.
@@ -106,5 +105,3 @@ int config_parse_storage(const char *filename, unsigned line, const char *sectio
 
 const char *storage_to_string(Storage s);
 Storage storage_from_string(const char *s);
-
-#endif
index 31cc2f57b04cf00ca3607b4435d60df1f76f95fa..502b42c209ea69d19cfca4984a7f925d6dc910fc 100644 (file)
@@ -1,7 +1,6 @@
 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
 
-#ifndef foolookup3hfoo
-#define foolookup3hfoo
+#pragma once
 
 #include <inttypes.h>
 #include <sys/types.h>
@@ -21,5 +20,3 @@ static inline uint64_t hash64(const void *data, size_t length) {
 
         return ((uint64_t) a << 32ULL) | (uint64_t) b;
 }
-
-#endif
index ea34590bd12f2fb29fe1e7c060d2250483fc7fd1..ec09843a787fc20818a7284e61f01093ec022e49 100644 (file)
@@ -1,7 +1,6 @@
 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
 
-#ifndef foologindaclhfoo
-#define foologindaclhfoo
+#pragma once
 
 /***
   This file is part of systemd.
@@ -56,5 +55,3 @@ static inline int devnode_acl_all(struct udev *udev,
 }
 
 #endif
-
-#endif
index bdb974172741918a5cef2fe195ef6d9ed10579d5..3b153568cb3fbc1c9b9cfea206d6ba51bd1a2a63 100644 (file)
@@ -1,7 +1,6 @@
 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
 
-#ifndef foologinddevicehfoo
-#define foologinddevicehfoo
+#pragma once
 
 /***
   This file is part of systemd.
@@ -44,5 +43,3 @@ Device* device_new(Manager *m, const char *sysfs);
 void device_free(Device *d);
 void device_attach(Device *d, Seat *s);
 void device_detach(Device *d);
-
-#endif
index 1abbc344ecbf7fd11562fc4f521923bd4f869e60..c8ab17f7cf15fa9a42ce5f2c158ce571e8aaeb57 100644 (file)
@@ -1,7 +1,6 @@
 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
 
-#ifndef foologindseathfoo
-#define foologindseathfoo
+#pragma once
 
 /***
   This file is part of systemd.
@@ -82,5 +81,3 @@ extern const DBusObjectPathVTable bus_seat_vtable;
 
 int seat_send_signal(Seat *s, bool new_seat);
 int seat_send_changed(Seat *s, const char *properties);
-
-#endif
index b255dc7cde95eaf583a6106f87b51460e2a57de7..bfa4abd690b0a20383ff2fde6e5a7ac361d004e1 100644 (file)
@@ -1,7 +1,6 @@
 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
 
-#ifndef foologindsessionhfoo
-#define foologindsessionhfoo
+#pragma once
 
 /***
   This file is part of systemd.
@@ -145,5 +144,3 @@ SessionClass session_class_from_string(const char *s);
 
 const char *kill_who_to_string(KillWho k);
 KillWho kill_who_from_string(const char *s);
-
-#endif
index cffac3544725f87ead21f257bc04f1a73f077fa9..a679d43a30295bbd05449799548845e97117fab6 100644 (file)
@@ -1,7 +1,6 @@
 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
 
-#ifndef foologinduserhfoo
-#define foologinduserhfoo
+#pragma once
 
 /***
   This file is part of systemd.
@@ -83,5 +82,3 @@ int user_send_changed(User *u, const char *properties);
 
 const char* user_state_to_string(UserState s);
 UserState user_state_from_string(const char *s);
-
-#endif
index 5e828bf0197404fcffd16f6d384828302eee5d6b..24d705b541c116b2cf559c5271318d89620e36bd 100644 (file)
@@ -1,7 +1,6 @@
 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
 
-#ifndef foologindhfoo
-#define foologindhfoo
+#pragma once
 
 /***
   This file is part of systemd.
@@ -164,5 +163,3 @@ int manager_dispatch_delayed(Manager *manager);
 
 /* gperf lookup function */
 const struct ConfigPerfItem* logind_gperf_lookup(const char *key, unsigned length);
-
-#endif
index fd657a2d4d5c58d2a4974d6a97c9d1d7620a2eab..b34f3aadd75f3f4afcc036bfab8ef6c7ead889a8 100644 (file)
@@ -1,7 +1,6 @@
 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
 
-#ifndef fooreadaheadcommonhfoo
-#define fooreadaheadcommonhfoo
+#pragma once
 
 /***
   This file is part of systemd.
@@ -60,5 +59,3 @@ int block_set_readahead(const char *p, uint64_t bytes);
 int main_collect(const char *root);
 int main_replay(const char *root);
 int main_analyze(const char *pack_path);
-
-#endif
index 9f11636aa105b38e5780d1a77ce034b798624a10..31fbbcd51065eae97a069e9cfc2bbac434eedab0 100644 (file)
@@ -1,7 +1,6 @@
 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
 
-#ifndef fooaclutilhfoo
-#define fooaclutilhfoo
+#pragma once
 
 /***
   This file is part of systemd.
@@ -23,5 +22,3 @@
 ***/
 
 int acl_find_uid(acl_t acl, uid_t uid, acl_entry_t *entry);
-
-#endif
index 155afad33b1040293d1d0c0a9a45ea5ce62970cc..288a0f48cff9f784423db92ca7306c9ac4a1bcb8 100644 (file)
@@ -1,7 +1,6 @@
 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
 
-#ifndef fooaskpasswordapihfoo
-#define fooaskpasswordapihfoo
+#pragma once
 
 /***
   This file is part of systemd.
@@ -29,5 +28,3 @@ int ask_password_tty(const char *message, usec_t until, const char *flag_file, c
 int ask_password_agent(const char *message, const char *icon, usec_t until, bool accept_cached, char ***_passphrases);
 
 int ask_password_auto(const char *message, const char *icon, usec_t until, bool accept_cached, char ***_passphrases);
-
-#endif
index 7f11bc6f83d686c1cb60371d89926ab19b39379f..697669deba2065fd24faa401d5157106d8c8f15b 100644 (file)
@@ -1,7 +1,6 @@
 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
 
-#ifndef foocgrouputilhfoo
-#define foocgrouputilhfoo
+#pragma once
 
 /***
   This file is part of systemd.
@@ -73,5 +72,3 @@ int cg_pid_get_cgroup(pid_t pid, char **root, char **cgroup);
 int cg_pid_get_unit(pid_t pid, char **unit);
 
 char **cg_shorten_controllers(char **controllers);
-
-#endif
index 2e01f9ef93fda76cd4f0cffe8cf1333652a611f8..4f94b3b90770e4475451a834d009a4dc3d88bdd1 100644 (file)
@@ -1,7 +1,6 @@
 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
 
-#ifndef fooconfparserhfoo
-#define fooconfparserhfoo
+#pragma once
 
 /***
   This file is part of systemd.
@@ -134,5 +133,3 @@ int config_parse_level(const char *filename, unsigned line, const char *section,
                                                                         \
                 return 0;                                               \
         }
-
-#endif
index 9ae35df9c515376edc38756604f9d4f39e485b17..a6703a78d06da2305830806de0f7237ba54cb72b 100644 (file)
@@ -1,7 +1,6 @@
 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
 
-#ifndef foodbuscommonhfoo
-#define foodbuscommonhfoo
+#pragma once
 
 /***
   This file is part of systemd.
@@ -204,5 +203,3 @@ void bus_async_unregister_and_exit(DBusConnection *bus, const char *name);
 DBusHandlerResult bus_exit_idle_filter(DBusConnection *bus, DBusMessage *m, void *userdata);
 
 pid_t bus_get_unix_process_id(DBusConnection *connection, const char *name, DBusError *error);
-
-#endif
index 3902b354cffad4a3695144dd42f98b3e13c74bdb..a5e768d93192187844ecf9530a212a8537fab9d7 100644 (file)
@@ -1,7 +1,6 @@
 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
 
-#ifndef foodbusloophfoo
-#define foodbusloophfoo
+#pragma once
 
 /***
   This file is part of systemd.
@@ -26,5 +25,3 @@
 
 int bus_loop_open(DBusConnection *c);
 int bus_loop_dispatch(int fd);
-
-#endif
index d021e660215009eb1974ead11e5b60bb6a028231..5ba170f96581e3611f9157937c3d49d4603cf804 100644 (file)
@@ -1,7 +1,6 @@
 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
 
-#ifndef foodefhfoo
-#define foodefhfoo
+#pragma once
 
 /***
   This file is part of systemd.
@@ -34,5 +33,3 @@
 
 #define SIGNALS_CRASH_HANDLER SIGSEGV,SIGILL,SIGFPE,SIGBUS,SIGQUIT,SIGABRT
 #define SIGNALS_IGNORE SIGKILL,SIGPIPE
-
-#endif
index 813f1ce1b4a236a9e7fc4cc5b3bff77f928a36a4..3f42c15e3b97d071dd4b9483896a4c51b3e9e8d6 100644 (file)
@@ -1,7 +1,6 @@
 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
 
-#ifndef fooexitstatushfoo
-#define fooexitstatushfoo
+#pragma once
 
 /***
   This file is part of systemd.
@@ -82,5 +81,3 @@ const char* exit_status_to_string(ExitStatus status, ExitStatusLevel level);
 
 bool is_clean_exit(int code, int status);
 bool is_clean_exit_lsb(int code, int status);
-
-#endif
index deefd9a804d1ea89164c73c81d103b7724236ef8..ee810f5ae137230f4955cb167c64bd6f806e69f5 100644 (file)
@@ -1,7 +1,6 @@
 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
 
-#ifndef foohashmaphfoo
-#define foohashmaphfoo
+#pragma once
 
 /***
   This file is part of systemd.
@@ -89,5 +88,3 @@ char **hashmap_get_strv(Hashmap *h);
 
 #define HASHMAP_FOREACH_BACKWARDS(e, h, i) \
         for ((i) = ITERATOR_LAST, (e) = hashmap_iterate_backwards((h), &(i), NULL); (e); (e) = hashmap_iterate_backwards((h), &(i), NULL))
-
-#endif
index d365c01bc75836ea6c4651bd76101972e6cdf8cf..f02fa3efbdaf0ce1b48547ff76ec9b0e4a22fa45 100644 (file)
@@ -1,7 +1,6 @@
 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
 
-#ifndef fooinstallhfoo
-#define fooinstallhfoo
+#pragma once
 
 /***
   This file is part of systemd.
@@ -85,5 +84,3 @@ UnitFileState unit_file_state_from_string(const char *s);
 
 const char *unit_file_change_type_to_string(UnitFileChangeType s);
 UnitFileChangeType unit_file_change_type_from_string(const char *s);
-
-#endif
index 8d832f9a598c38849425dc2da331c7d0c4d6a9ad..1220b18965db29303e0ce58e872299fe866b1907 100644 (file)
@@ -1,7 +1,6 @@
 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
 
-#ifndef foolabelhfoo
-#define foolabelhfoo
+#pragma once
 
 /***
   This file is part of systemd.
@@ -46,5 +45,3 @@ int label_mkdir(const char *path, mode_t mode, bool apply);
 void label_retest_selinux(void);
 
 int label_bind(int fd, const struct sockaddr *addr, socklen_t addrlen);
-
-#endif
index 9a491b990efe0f024d703c23f7eb9887ceee20c9..47f275a019403c873d0d52341f7ab93fdb120d48 100644 (file)
@@ -1,7 +1,6 @@
 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
 
-#ifndef foolisthfoo
-#define foolisthfoo
+#pragma once
 
 /***
   This file is part of systemd.
 
 #define LIST_FOREACH_AFTER(name,i,p)                                    \
         for ((i) = (p)->name##_next; (i); (i) = (i)->name##_next)
-
-#endif
index 59d4c00f7d71d542944870e05da28007ee4c81d3..c986b2579d7cff2f837286983cc7cadfb682ca26 100644 (file)
@@ -1,7 +1,6 @@
 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
 
-#ifndef foologhfoo
-#define foologhfoo
+#pragma once
 
 /***
   This file is part of systemd.
@@ -108,5 +107,3 @@ int log_dump_internal(
 
 const char *log_target_to_string(LogTarget target);
 LogTarget log_target_from_string(const char *s);
-
-#endif
index 2e9cf63891ba887501467c9e9dd0358a4c4eaeb5..4e6743254bda9e0def1720ffa5d6a72fb1a19a57 100644 (file)
@@ -1,7 +1,6 @@
 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
 
-#ifndef foologsshowhfoo
-#define foologsshowhfoo
+#pragma once
 
 /***
   This file is part of systemd.
@@ -60,5 +59,3 @@ int show_journal_by_unit(
 
 const char* output_mode_to_string(OutputMode m);
 OutputMode output_mode_from_string(const char *s);
-
-#endif
index 97eebbc88be174349e31b24e36bd1db4533d2f7e..4595750394d8a2a5d43c68d27d46eb0d1ec55a64 100644 (file)
@@ -1,7 +1,6 @@
 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
 
-#ifndef foomacrohfoo
-#define foomacrohfoo
+#pragma once
 
 /***
   This file is part of systemd.
@@ -189,5 +188,3 @@ static inline size_t IOVEC_INCREMENT(struct iovec *i, unsigned n, size_t k) {
 }
 
 #include "log.h"
-
-#endif
index d918c4e9a74bde19ccc53412dea99c77fa3e68d0..e600acc0b18e5d0cf04cdb25cb36a6fa2e2e9e8e 100644 (file)
@@ -1,7 +1,6 @@
 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
 
-#ifndef foomissinghfoo
-#define foomissinghfoo
+#pragma once
 
 /***
   This file is part of systemd.
@@ -191,5 +190,3 @@ static inline pid_t gettid(void) {
 #ifndef PR_SET_NO_NEW_PRIVS
 #define PR_SET_NO_NEW_PRIVS 38
 #endif
-
-#endif
index 7d2108f73e1b8b5dc08ccd6757326ce5fd0dd14d..dcd61957ef3eb5842a8daa9009b9b7c5236f3ed1 100644 (file)
@@ -1,7 +1,6 @@
 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
 
-#ifndef foopagerhfoo
-#define foopagerhfoo
+#pragma once
 
 /***
   This file is part of systemd.
@@ -24,5 +23,3 @@
 
 void pager_open(void);
 void pager_close(void);
-
-#endif
index 96c49c2400e523e6d37237da1cdf9a9487b08a72..0aab956f25e5ee5b6ef66b08bcacce1fb79b8cf7 100644 (file)
@@ -1,7 +1,6 @@
 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
 
-#ifndef foopathlookuphfoo
-#define foopathlookuphfoo
+#pragma once
 
 /***
   This file is part of systemd.
@@ -36,5 +35,3 @@ int user_config_home(char **config_home);
 
 int lookup_paths_init(LookupPaths *p, ManagerRunningAs running_as, bool personal, const char *generator, const char *generator_early, const char *generator_late);
 void lookup_paths_free(LookupPaths *p);
-
-#endif
index 5aecfff635dde87b72f861d13e6aa0207761773d..6255d1f6176fb8781dc998910ab5389af17ce492 100644 (file)
@@ -1,7 +1,6 @@
 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
 
-#ifndef foopolkithfoo
-#define foopolkithfoo
+#pragma once
 
 /***
   This file is part of systemd.
@@ -32,5 +31,3 @@ int verify_polkit(
                 bool interactive,
                 bool *challenge,
                 DBusError *error);
-
-#endif
index ad00267a6e5c3c0181d62c9c684bd8be635d9b5e..58efca7df14108884546dc16c69bb9bba5f2ad73 100644 (file)
@@ -1,7 +1,6 @@
 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
 
-#ifndef fooratelimithfoo
-#define fooratelimithfoo
+#pragma once
 
 /***
   This file is part of systemd.
@@ -56,5 +55,3 @@ typedef struct RateLimit {
         } while (false)
 
 bool ratelimit_test(RateLimit *r);
-
-#endif
index 18921df4271f41448b42113733506701c4a5dc8e..c7b6231eed36ed0b9fdd66f5dd0015b8fb4ee9da 100644 (file)
@@ -1,7 +1,6 @@
 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
 
-#ifndef foosethfoo
-#define foosethfoo
+#pragma once
 
 /***
   This file is part of systemd.
@@ -67,5 +66,3 @@ void* set_last(Set *s);
 
 #define SET_FOREACH_BACKWARDS(e, s, i) \
         for ((i) = ITERATOR_LAST, (e) = set_iterate_backwards((s), &(i)); (e); (e) = set_iterate_backwards((s), &(i)))
-
-#endif
index a5a9463f183fcbde3b62451acace1e8b912fea48..7cca2f53c667655c86decade651aa201422cfb38 100644 (file)
@@ -1,7 +1,6 @@
 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
 
-#ifndef foosocketutilhfoo
-#define foosocketutilhfoo
+#pragma once
 
 /***
   This file is part of systemd.
@@ -98,5 +97,3 @@ const char* netlink_family_to_string(int b);
 int netlink_family_from_string(const char *s);
 
 bool socket_ipv6_is_supported(void);
-
-#endif
index fa5e7b026069e9fee10e124703c891b5ef671f1b..31b4beab585dbac57807453f01f924c8056107cd 100644 (file)
@@ -1,7 +1,6 @@
 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
 
-#ifndef foospawnaskpasswordagenthfoo
-#define foospawnaskpasswordagenthfoo
+#pragma once
 
 /***
   This file is part of systemd.
@@ -24,5 +23,3 @@
 
 int ask_password_agent_open(void);
 void ask_password_agent_close(void);
-
-#endif
index 57d1fcb35cf1821f5dd6c529354a8bcccecdb289..25a27a423f24731203a07d7c34e2bba0209129a5 100644 (file)
@@ -1,7 +1,6 @@
 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
 
-#ifndef foospecifierhfoo
-#define foospecifierhfoo
+#pragma once
 
 /***
   This file is part of systemd.
@@ -33,5 +32,3 @@ typedef struct Specifier {
 char *specifier_printf(const char *text, const Specifier table[], void *userdata);
 
 char* specifier_string(char specifier, void *data, void *userdata);
-
-#endif
index 635e92b728ed551142fbf0ba45a2cec502b3bd26..ae4e31f14c4246512ff50e5c9dafe54322beb141 100644 (file)
@@ -1,7 +1,6 @@
 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
 
-#ifndef foostrvhfoo
-#define foostrvhfoo
+#pragma once
 
 /***
   This file is part of systemd.
@@ -80,5 +79,3 @@ bool strv_overlap(char **a, char **b);
 
 #define STRV_FOREACH_BACKWARDS(s, l)            \
         for (; (l) && ((s) >= (l)); (s)--)
-
-#endif
index c6c09dd31feb5136680594b649f1cb6d2e5c699d..f899f865285c3fea38119fd35baafd05287b2a33 100644 (file)
@@ -1,7 +1,6 @@
 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
 
-#ifndef foounitnamehfoo
-#define foounitnamehfoo
+#pragma once
 
 /***
   This file is part of systemd.
@@ -92,5 +91,3 @@ char *unit_name_to_path(const char *name);
 char *unit_dbus_path_from_name(const char *name);
 
 char *unit_name_mangle(const char *name);
-
-#endif
index fec76b487a620cbb4f245b54a58c042a6136501d..13d2f6a980e348ee362e9a4aecd06fd8c742b0c2 100644 (file)
@@ -1,7 +1,6 @@
 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
 
-#ifndef fooutf8hfoo
-#define fooutf8hfoo
+#pragma once
 
 /***
   This file is part of systemd.
@@ -31,5 +30,3 @@ char *utf8_is_printable_n(const char* str, size_t length) _pure_;
 
 char *utf8_filter(const char *s);
 char *ascii_filter(const char *s);
-
-#endif
index 3915904442e2047ba7993832429c61812213f141..d25b7ee1ee4c9925224cd027d6725d7d85f524ea 100644 (file)
@@ -1,7 +1,6 @@
 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
 
-#ifndef fooutilhfoo
-#define fooutilhfoo
+#pragma once
 
 /***
   This file is part of systemd.
@@ -531,5 +530,3 @@ void warn_melody(void);
 
 int get_shell(char **ret);
 int get_home_dir(char **ret);
-
-#endif
index ab950617a1a1104a8913dd78d4fec63a1faf1fe6..5924023203e6f075cd332bbf765f3d58d8dacba1 100644 (file)
@@ -1,7 +1,6 @@
 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
 
-#ifndef fooutmpwtmphfoo
-#define fooutmpwtmphfoo
+#pragma once
 
 /***
   This file is part of systemd.
@@ -34,5 +33,3 @@ int utmp_put_dead_process(const char *id, pid_t pid, int code, int status);
 int utmp_put_init_process(const char *id, pid_t pid, pid_t sid, const char *line);
 
 int utmp_wall(const char *message, bool (*match_tty)(const char *tty));
-
-#endif
index 0b6dc1a9bdf504148215d6164ca28561ac20d620..aa6ad35ba9db58d6c094ec1adf6a862a8e28f97b 100644 (file)
@@ -1,7 +1,6 @@
 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
 
-#ifndef foovirthfoo
-#define foovirthfoo
+#pragma once
 
 /***
   This file is part of systemd.
@@ -34,5 +33,3 @@ typedef enum Virtualization {
 } Virtualization;
 
 Virtualization detect_virtualization(const char **id);
-
-#endif
index 2e00cb9f4be1200bcdd5f4ac686e616e232b3556..b748b15857ba4b893bc3a03331cf14df9b92153c 100644 (file)
@@ -1,7 +1,6 @@
 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
 
-#ifndef foowatchdoghfoo
-#define foowatchdoghfoo
+#pragma once
 
 /***
   This file is part of systemd.
@@ -27,5 +26,3 @@
 int watchdog_set_timeout(usec_t *usec);
 int watchdog_ping(void);
 void watchdog_close(bool disarm);
-
-#endif