]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
tree-wide: place #pragma once at the same place everywhere
authorLennart Poettering <lennart@poettering.net>
Tue, 16 Feb 2016 19:05:15 +0000 (20:05 +0100)
committerLennart Poettering <lennart@poettering.net>
Sat, 20 Feb 2016 21:42:29 +0000 (22:42 +0100)
Usually, we place the #pragma once before the copyright blurb in header files,
but in a few cases we didn't. Move those around, so that we do the same thing
everywhere.

42 files changed:
src/analyze/analyze-verify.h
src/basic/btrfs-util.h
src/basic/gunicode.h
src/basic/login-util.h
src/basic/sigbus.h
src/journal-remote/journal-remote-parse.h
src/journal-remote/journal-remote-write.h
src/journal-remote/journal-remote.h
src/journal-remote/microhttpd-util.h
src/libsystemd-network/dhcp-server-internal.h
src/libsystemd-network/lldp-internal.h
src/libsystemd-network/lldp-network.c
src/libsystemd-network/lldp-network.h
src/libsystemd-network/lldp-tlv.h
src/libsystemd-network/lldp.h
src/libsystemd/sd-device/device-internal.h
src/libsystemd/sd-hwdb/hwdb-internal.h
src/libudev/libudev-device-internal.h
src/network/networkd-netdev-bridge.h
src/network/networkd-netdev-dummy.h
src/network/networkd-netdev-ipvlan.h
src/network/networkd-netdev-macvlan.h
src/network/networkd-netdev-tunnel.h
src/network/networkd-netdev-tuntap.h
src/network/networkd-netdev-veth.h
src/network/networkd-netdev-vlan.h
src/network/networkd-netdev-vxlan.h
src/network/networkd-netdev.h
src/network/networkd-wait-online.h
src/network/networkd.h
src/resolve/dns-type.h
src/shared/dns-domain.h
src/shared/gpt.h
src/shared/install-printf.h
src/shared/sleep-config.h
src/udev/mtd_probe/mtd_probe.h
src/udev/net/ethtool-util.h
src/udev/net/link-config.h
src/udev/scsi_id/scsi.h
src/udev/scsi_id/scsi_id.h
src/udev/udev.h
src/udev/udevadm-util.h

index 54adad93e11136b3917671ac5e76a2838d3e4099..27c253a56280439d4f2a3c9937d258832d3faece 100644 (file)
@@ -1,3 +1,5 @@
+#pragma once
+
 /***
   This file is part of systemd.
 
@@ -17,8 +19,6 @@
   along with systemd; If not, see <http://www.gnu.org/licenses/>.
 ***/
 
-#pragma once
-
 #include <stdbool.h>
 
 #include "path-lookup.h"
index 37802c2565ead2fda1a42a665c34a99e71c3ae90..1d852d502c4bcdfd4b24f3ae8fc63e9193dbeb75 100644 (file)
@@ -1,3 +1,5 @@
+#pragma once
+
 /***
   This file is part of systemd.
 
@@ -17,8 +19,6 @@
   along with systemd; If not, see <http://www.gnu.org/licenses/>.
 ***/
 
-#pragma once
-
 #include <stdbool.h>
 #include <stdint.h>
 #include <sys/types.h>
index b03aa431603c64a834d596a4962b9c83bdbca81e..5975bc8fc9c9507ad00ad518136adadc30487be8 100644 (file)
@@ -1,11 +1,11 @@
+#pragma once
+
 /* gunicode.h - Unicode manipulation functions
  *
  *  Copyright (C) 1999, 2000 Tom Tromey
  *  Copyright 2000, 2005 Red Hat, Inc.
  */
 
-#pragma once
-
 #include <stdbool.h>
 #include <stdint.h>
 #include <stdlib.h>
index 89a337d7c1fc1c39c9745268169628b3dcc032ea..b01ee25c884cee292d2d826fc2c7f57a515e5018 100644 (file)
@@ -1,3 +1,5 @@
+#pragma once
+
 /***
   This file is part of systemd.
 
@@ -17,8 +19,6 @@
   along with systemd; If not, see <http://www.gnu.org/licenses/>.
 ***/
 
-#pragma once
-
 #include <stdbool.h>
 #include <unistd.h>
 
index cce9eb201b5915277d4071989c706ed5a0643e61..980243d9ce7a9bd2b97ed99a75fb9de1b1e9785b 100644 (file)
@@ -1,3 +1,5 @@
+#pragma once
+
 /***
   This file is part of systemd.
 
@@ -17,8 +19,6 @@
   along with systemd; If not, see <http://www.gnu.org/licenses/>.
 ***/
 
-#pragma once
-
 void sigbus_install(void);
 void sigbus_reset(void);
 
index 0b8b6af736a9999937140290961fbcad0cacd6a8..1740a21f92ad4c085bf9386c78d370501e72fb28 100644 (file)
@@ -1,3 +1,5 @@
+#pragma once
+
 /***
   This file is part of systemd.
 
@@ -17,8 +19,6 @@
   along with systemd; If not, see <http://www.gnu.org/licenses/>.
 ***/
 
-#pragma once
-
 #include "sd-event.h"
 
 #include "journal-remote-write.h"
index 6b645a353c492cd89c16c0ee47d9a74b648a8d5f..53ba45fc04ef009623f48e49134a0e7db9bdd9f7 100644 (file)
@@ -1,3 +1,5 @@
+#pragma once
+
 /***
   This file is part of systemd.
 
@@ -17,9 +19,6 @@
   along with systemd; If not, see <http://www.gnu.org/licenses/>.
 ***/
 
-#pragma once
-
-
 #include "journal-file.h"
 
 typedef struct RemoteServer RemoteServer;
index 6466a1c101fcf3d1cac86242ea8e8f493a8eeb27..30ad7df996f6b347d379bee5dbd501b3c43d9c02 100644 (file)
@@ -1,3 +1,5 @@
+#pragma once
+
 /***
   This file is part of systemd.
 
@@ -17,9 +19,6 @@
   along with systemd; If not, see <http://www.gnu.org/licenses/>.
 ***/
 
-#pragma once
-
-
 #include "sd-event.h"
 
 #include "hashmap.h"
index 70c4d29c0f93f1631d2cf9572d16026fcb83d18c..ea160f212bd1849674c098eabf67a4f657c35e33 100644 (file)
@@ -1,3 +1,5 @@
+#pragma once
+
 /***
   This file is part of systemd.
 
@@ -17,8 +19,6 @@
   along with systemd; If not, see <http://www.gnu.org/licenses/>.
 ***/
 
-#pragma once
-
 #include <microhttpd.h>
 #include <stdarg.h>
 
index bf123f14399dc4d6039f0c7a793a209922a376f0..adb557167ab15c7406f966415aa8b56062c5e677 100644 (file)
@@ -1,3 +1,5 @@
+#pragma once
+
 /***
   This file is part of systemd.
 
@@ -18,8 +20,6 @@
   along with systemd; If not, see <http://www.gnu.org/licenses/>.
 ***/
 
-#pragma once
-
 #include "sd-dhcp-server.h"
 #include "sd-event.h"
 
index 15b4a11b151be20611f48b1c987af188c3316e5f..9122879e7eaf9d52069684925065cd8e7e4f4500 100644 (file)
@@ -1,3 +1,5 @@
+#pragma once
+
 /***
   This file is part of systemd.
 
@@ -18,8 +20,6 @@
   along with systemd; If not, see <http://www.gnu.org/licenses/>.
 ***/
 
-#pragma once
-
 #include "sd-event.h"
 
 #include "list.h"
index c81ac6b89359c54fb5ee943fa01b37c9446a54da..10729e77b27d202d95462f902c72e785b896e2be 100644 (file)
@@ -53,7 +53,6 @@ int lldp_network_bind_raw_socket(int ifindex) {
         };
 
         _cleanup_close_ int fd = -1;
-
         int r;
 
         assert(ifindex > 0);
index dcf31faa956ecf6f8e9f4ccdd4722573b105fd71..c4cf8c79f160c6c08fa851db8395d68185863ea7 100644 (file)
@@ -1,3 +1,5 @@
+#pragma once
+
 /***
   This file is part of systemd.
 
@@ -18,8 +20,6 @@
   along with systemd; If not, see <http://www.gnu.org/licenses/>.
 ***/
 
-#pragma once
-
 #include "sd-event.h"
 
 int lldp_network_bind_raw_socket(int ifindex);
index 8e7706c61282cbb0aad18767a1a82a3b56d1e37b..1ddca2882f5316c922add2928545c7ccce8db2d2 100644 (file)
@@ -1,3 +1,5 @@
+#pragma once
+
 /***
   This file is part of systemd.
 
@@ -18,8 +20,6 @@
   along with systemd; If not, see <http://www.gnu.org/licenses/>.
 ***/
 
-#pragma once
-
 #include <net/ethernet.h>
 
 #include "sd-lldp.h"
index f881f490b4dda96ef224a010a2678cdefaf4a24c..88bef687ebb1c2abb98f98f21f08153c5084920e 100644 (file)
@@ -1,3 +1,5 @@
+#pragma once
+
 /***
   This file is part of systemd.
 
@@ -18,8 +20,6 @@
   along with systemd; If not, see <http://www.gnu.org/licenses/>.
 ***/
 
-#pragma once
-
 #define LLDP_MULTICAST_ADDR     { 0x01, 0x80, 0xc2, 0x00, 0x00, 0x0e }
 
 /* IEEE 802.3AB Clause 9: TLV Types */
index b96441de56960a0ec4d80027b1d6ec288a6973c6..ab222e27decf02d54c2935289db459f4e442704c 100644 (file)
@@ -1,3 +1,5 @@
+#pragma once
+
 /***
   This file is part of systemd.
 
@@ -18,8 +20,6 @@
   along with systemd; If not, see <http://www.gnu.org/licenses/>.
 ***/
 
-#pragma once
-
 #include "hashmap.h"
 #include "set.h"
 
index 13fddfc8ad8e29eace896456ec205fb26e0fae96..8ffb5e5c74f89954a7d5ee6768ce4be7121596f0 100644 (file)
@@ -1,3 +1,5 @@
+#pragma once
+
 /***
   This file is part of systemd.
 
@@ -16,7 +18,6 @@
   You should have received a copy of the GNU Lesser General Public License
   along with systemd; If not, see <http://www.gnu.org/licenses/>.
 ***/
-#pragma once
 
 #include "sparse-endian.h"
 #include "util.h"
index 40d59201cf327b5e29d4df06689d4e2ce85be0ca..0e9af8ec09c26f84d7bba39687f6d3092a7b4c1d 100644 (file)
@@ -1,3 +1,5 @@
+#pragma once
+
 /***
   This file is part of systemd.
 
@@ -18,8 +20,6 @@
   along with systemd; If not, see <http://www.gnu.org/licenses/>.
 ***/
 
-#pragma once
-
 #include "libudev.h"
 #include "sd-device.h"
 
index b2bf7e15f1c4eb2118ca08d995c41cbe3d5349a6..27f26f78704570fcfb9fb2538b293ffe78427dc9 100644 (file)
@@ -1,3 +1,5 @@
+#pragma once
+
 /***
   This file is part of systemd.
 
@@ -17,8 +19,6 @@
   along with systemd; If not, see <http://www.gnu.org/licenses/>.
 ***/
 
-#pragma once
-
 typedef struct Bridge Bridge;
 
 #include "networkd-netdev.h"
index 29f75a149b7bbc69c652ad02ca83201254006a86..42da62ebe4b03b454c6984c2e0d6f5f06b136fef 100644 (file)
@@ -1,3 +1,5 @@
+#pragma once
+
 /***
   This file is part of systemd.
 
@@ -17,8 +19,6 @@
   along with systemd; If not, see <http://www.gnu.org/licenses/>.
 ***/
 
-#pragma once
-
 typedef struct Dummy Dummy;
 
 #include "networkd-netdev.h"
index 5b85ef2150d0f7ec66a47b6e1b3d47fc1c87039a..4bd0b67866ebc51d8b19ccce8fe9a2e8e38678ed 100644 (file)
@@ -1,3 +1,5 @@
+#pragma once
+
 /***
   This file is part of systemd.
 
@@ -17,8 +19,6 @@
   along with systemd; If not, see <http://www.gnu.org/licenses/>.
 ***/
 
-#pragma once
-
 typedef struct IPVlan IPVlan;
 
 #include "missing.h"
index 8b42684de6e30ed19395967d720c9443b4f7c5f5..622ef9ef53b04ca827e2133f3c9525b51d03fa3b 100644 (file)
@@ -1,3 +1,5 @@
+#pragma once
+
 /***
   This file is part of systemd.
 
@@ -17,8 +19,6 @@
   along with systemd; If not, see <http://www.gnu.org/licenses/>.
 ***/
 
-#pragma once
-
 typedef struct MacVlan MacVlan;
 
 #include "networkd-netdev.h"
index ea1d9a79e702f3437e2cc4ecff7a9004bdbcffa2..0d41f80a3c22d93b71570814166f7fcc7276719c 100644 (file)
@@ -1,3 +1,5 @@
+#pragma once
+
 /***
   This file is part of systemd.
 
@@ -17,8 +19,6 @@
   along with systemd; If not, see <http://www.gnu.org/licenses/>.
 ***/
 
-#pragma once
-
 typedef struct Tunnel Tunnel;
 
 #include "networkd-netdev.h"
index b970b0ce3b80b668e5b359ecee4959309009d394..cbb7ee05a6bc65dab328eaf44e455a329d29a37d 100644 (file)
@@ -1,3 +1,5 @@
+#pragma once
+
 /***
   This file is part of systemd.
 
@@ -17,8 +19,6 @@
   along with systemd; If not, see <http://www.gnu.org/licenses/>.
 ***/
 
-#pragma once
-
 typedef struct TunTap TunTap;
 
 #include "networkd-netdev.h"
index f7fdf906abbfcf7fa46131f0c7a216902bc40995..ae5785783c0c212229e30be56c3f03ea76d3e167 100644 (file)
@@ -1,3 +1,5 @@
+#pragma once
+
 /***
   This file is part of systemd.
 
@@ -17,8 +19,6 @@
   along with systemd; If not, see <http://www.gnu.org/licenses/>.
 ***/
 
-#pragma once
-
 typedef struct Veth Veth;
 
 #include "networkd-netdev.h"
index 8701c4b7859f8a8e6130b1f9a9681c2592a38bd7..1de6a1cc36fd41e03fb7523e57ecbc6d8207de31 100644 (file)
@@ -1,3 +1,5 @@
+#pragma once
+
 /***
   This file is part of systemd.
 
@@ -17,8 +19,6 @@
   along with systemd; If not, see <http://www.gnu.org/licenses/>.
 ***/
 
-#pragma once
-
 typedef struct VLan VLan;
 
 #include "networkd-netdev.h"
index 459ce53f5e8bf8d030adcd931fec86834d89aaad..a4bb44635a32d755333fc9996e8284ab5dabb8ad 100644 (file)
@@ -1,3 +1,5 @@
+#pragma once
+
 /***
   This file is part of systemd.
 
@@ -17,8 +19,6 @@
   along with systemd; If not, see <http://www.gnu.org/licenses/>.
 ***/
 
-#pragma once
-
 typedef struct VxLan VxLan;
 
 #include "in-addr-util.h"
index 3eacee824b56ae01bb4e27c757217c163b347a20..7ea825fcb460f5174b991933e21896fd61feb9b5 100644 (file)
@@ -1,3 +1,5 @@
+#pragma once
+
 /***
   This file is part of systemd.
 
@@ -17,8 +19,6 @@
   along with systemd; If not, see <http://www.gnu.org/licenses/>.
 ***/
 
-#pragma once
-
 #include "list.h"
 
 typedef struct NetDev NetDev;
index 421c2bdf447b3b5f266dff9f3499334793c3b3ce..f91995c3069c8f789003a99d3912729bd43be022 100644 (file)
@@ -1,3 +1,5 @@
+#pragma once
+
 /***
   This file is part of systemd.
 
@@ -17,8 +19,6 @@
   along with systemd; If not, see <http://www.gnu.org/licenses/>.
 ***/
 
-#pragma once
-
 #include "sd-event.h"
 #include "sd-netlink.h"
 #include "sd-network.h"
index 7ee922621a6d9e879c5a1b76767da0a2e384c87e..6bdd8302a0236f124d416372ce9393a62b7590d1 100644 (file)
@@ -1,3 +1,5 @@
+#pragma once
+
 /***
   This file is part of systemd.
 
@@ -17,8 +19,6 @@
   along with systemd; If not, see <http://www.gnu.org/licenses/>.
 ***/
 
-#pragma once
-
 #include <arpa/inet.h>
 
 #include "sd-bus.h"
index db9666b9700987bd006eeb0cad04a3d69991b83e..7b79d29d7ef1eaef3df09a5fdd8b82a60e5b08d3 100644 (file)
@@ -1,3 +1,5 @@
+#pragma once
+
 /***
   This file is part of systemd.
 
@@ -17,8 +19,6 @@
   along with systemd; If not, see <http://www.gnu.org/licenses/>.
 ***/
 
-#pragma once
-
 #include "macro.h"
 
 /* DNS record types, taken from
index 2de3642cb39317af463da6b71ec656fa4a91ba36..af780f0b8b96cc0887447dee4a0629dccc431200 100644 (file)
@@ -1,3 +1,5 @@
+#pragma once
+
 /***
   This file is part of systemd.
 
@@ -17,9 +19,6 @@
   along with systemd; If not, see <http://www.gnu.org/licenses/>.
  ***/
 
-#pragma once
-
-
 #include <errno.h>
 #include <stdbool.h>
 #include <stddef.h>
index 52ab29ed5f75b9c1acc1e934b9deb2502f76e666..55b41bbcd83babdb8bcf64911f324339788b4f63 100644 (file)
@@ -1,3 +1,5 @@
+#pragma once
+
 /***
   This file is part of systemd.
 
@@ -17,8 +19,6 @@
   along with systemd; If not, see <http://www.gnu.org/licenses/>.
 ***/
 
-#pragma once
-
 #include <endian.h>
 
 #include "sd-id128.h"
index acf519f4f75bf143011548c21f4c4ea24aa4e0e5..8a570fc2653b2fbd8dc58423dfc090ac72ae4b38 100644 (file)
@@ -1,3 +1,5 @@
+#pragma once
+
 /***
   This file is part of systemd.
 
@@ -17,8 +19,6 @@
   along with systemd; If not, see <http://www.gnu.org/licenses/>.
 ***/
 
-#pragma once
-
 #include "install.h"
 
 int install_full_printf(UnitFileInstallInfo *i, const char *format, char **ret);
index 51f4621844d26aae453d86b1cc7f6d6584794baa..ad10039ff47bcde39f9ee377decabe8ac63432e6 100644 (file)
@@ -1,3 +1,5 @@
+#pragma once
+
 /***
   This file is part of systemd.
 
@@ -17,8 +19,6 @@
   along with systemd; If not, see <http://www.gnu.org/licenses/>.
 ***/
 
-#pragma once
-
 int parse_sleep_config(const char *verb, char ***modes, char ***states);
 
 int can_sleep(const char *verb);
index caea5c26938ac8abae91724b5922e20b98926aef..68e4954537f4b9dcd1938c03fe895bd2c869c2e0 100644 (file)
@@ -1,3 +1,5 @@
+#pragma once
+
 /*
  * Copyright (C) 2010 - Maxim Levitsky
  *
@@ -17,8 +19,6 @@
  * Boston, MA  02110-1301  USA
  */
 
-#pragma once
-
 #include <mtd/mtd-user.h>
 
 #include "macro.h"
index 2e6e1d7150ce0b0f8e12efe1408e7fc443cbb664..7716516e7656ede13bd815e17a7455891660bee8 100644 (file)
@@ -1,3 +1,5 @@
+#pragma once
+
 /***
  This file is part of systemd.
 
@@ -17,8 +19,6 @@
   along with systemd; If not, see <http://www.gnu.org/licenses/>.
 ***/
 
-#pragma once
-
 #include <macro.h>
 
 /* we can't use DUPLEX_ prefix, as it
index f525fe211634cd01d0147ed3270871093681268a..9df5529d055c031c42365882367ad3f18c98a512 100644 (file)
@@ -1,3 +1,5 @@
+#pragma once
+
 /***
  This file is part of systemd.
 
@@ -17,8 +19,6 @@
   along with systemd; If not, see <http://www.gnu.org/licenses/>.
 ***/
 
-#pragma once
-
 #include "libudev.h"
 
 #include "condition.h"
index 3bf1a9420013c95a2b299198c9fbecf02125b89a..a27a84a40afc5e29a42c1edcb23bacd661c494e6 100644 (file)
@@ -1,3 +1,5 @@
+#pragma once
+
 /*
  * scsi.h
  *
@@ -10,8 +12,6 @@
  *        Free Software Foundation version 2 of the License.
  */
 
-#pragma once
-
 #include <scsi/scsi.h>
 
 struct scsi_ioctl_command {
index 141b116a889c5659412017e5dd1ff5977886cae4..5c2e1c28ee3a4f94b25c56a4460712e86d050b01 100644 (file)
@@ -1,3 +1,5 @@
+#pragma once
+
 /*
  * Copyright (C) IBM Corp. 2003
  *
@@ -15,8 +17,6 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-#pragma once
-
 #define MAX_PATH_LEN 512
 
 /*
index 1f9c8120c0add2c43cf379862cc3bd3cc15ce462..068713327de377b765198ed05cd4bb8d2fe83e35 100644 (file)
@@ -1,3 +1,5 @@
+#pragma once
+
 /*
  * Copyright (C) 2003 Greg Kroah-Hartman <greg@kroah.com>
  * Copyright (C) 2003-2010 Kay Sievers <kay@vrfy.org>
@@ -16,8 +18,6 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-#pragma once
-
 #include <sys/param.h>
 #include <sys/types.h>
 
index 37e4fe8369f7ddb3b0b8eb75d17b126b9334f4a5..dc712b0d937114abf7e5b8d5a26dcf3f256c57e6 100644 (file)
@@ -1,3 +1,5 @@
+#pragma once
+
 /*
  * Copyright (C) 2014 Zbigniew JÄ™drzejewski-Szmek <zbyszek@in.waw.pl>
  *
@@ -15,8 +17,6 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-#pragma once
-
 #include "udev.h"
 
 struct udev_device *find_device(struct udev *udev,