From: Zbigniew Jędrzejewski-Szmek Date: Fri, 23 Jan 2015 14:20:59 +0000 (-0500) Subject: #pragma once here and there X-Git-Tag: v219~312 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=c9403dced7c3eb0cc2a925c6428ca30ef8527b55 #pragma once here and there --- diff --git a/src/analyze/analyze-verify.h b/src/analyze/analyze-verify.h index 5c86d9862..f10c34c4a 100644 --- a/src/analyze/analyze-verify.h +++ b/src/analyze/analyze-verify.h @@ -19,6 +19,8 @@ along with systemd; If not, see . ***/ +#pragma once + #include #include "path-lookup.h" diff --git a/src/compat-libs/linkwarning.h b/src/compat-libs/linkwarning.h index a2e9534a8..79ece9e7d 100644 --- a/src/compat-libs/linkwarning.h +++ b/src/compat-libs/linkwarning.h @@ -18,6 +18,8 @@ along with systemd; If not, see . ***/ +#pragma once + #define __make_section_unallocated(section_string) \ asm (".section " section_string "\n\t.previous"); diff --git a/src/import/import-dkr.h b/src/import/import-dkr.h index 51aacbe90..633c76796 100644 --- a/src/import/import-dkr.h +++ b/src/import/import-dkr.h @@ -19,6 +19,8 @@ along with systemd; If not, see . ***/ +#pragma once + #include "sd-event.h" #include "util.h" diff --git a/src/libsystemd-network/dhcp-server-internal.h b/src/libsystemd-network/dhcp-server-internal.h index eb7d6d44d..58750c441 100644 --- a/src/libsystemd-network/dhcp-server-internal.h +++ b/src/libsystemd-network/dhcp-server-internal.h @@ -20,6 +20,8 @@ along with systemd; If not, see . ***/ +#pragma once + #include "sd-event.h" #include "sd-dhcp-server.h" diff --git a/src/resolve/resolved-dns-domain.h b/src/resolve/resolved-dns-domain.h index 0888a7846..36f27ea03 100644 --- a/src/resolve/resolved-dns-domain.h +++ b/src/resolve/resolved-dns-domain.h @@ -19,6 +19,8 @@ along with systemd; If not, see . ***/ +#pragma once + #include #include "hashmap.h" diff --git a/src/shared/btrfs-util.h b/src/shared/btrfs-util.h index d5249d1bf..1b9c142e5 100644 --- a/src/shared/btrfs-util.h +++ b/src/shared/btrfs-util.h @@ -19,6 +19,8 @@ along with systemd; If not, see . ***/ +#pragma once + #include #include diff --git a/src/shared/gpt.h b/src/shared/gpt.h index 87308b0d2..add1df420 100644 --- a/src/shared/gpt.h +++ b/src/shared/gpt.h @@ -19,6 +19,8 @@ along with systemd; If not, see . ***/ +#pragma once + #include #include "sd-id128.h" diff --git a/src/shared/gunicode.h b/src/shared/gunicode.h index a4b2934a4..e70818fdd 100644 --- a/src/shared/gunicode.h +++ b/src/shared/gunicode.h @@ -4,6 +4,8 @@ * Copyright 2000, 2005 Red Hat, Inc. */ +#pragma once + #include #include #include diff --git a/src/shared/login-shared.h b/src/shared/login-shared.h index b2787c9c6..a79f20c1b 100644 --- a/src/shared/login-shared.h +++ b/src/shared/login-shared.h @@ -19,6 +19,8 @@ along with systemd; If not, see . ***/ +#pragma once + #include bool session_id_valid(const char *id); diff --git a/src/shared/sigbus.h b/src/shared/sigbus.h index 25593af2d..23edc6d9c 100644 --- a/src/shared/sigbus.h +++ b/src/shared/sigbus.h @@ -19,6 +19,8 @@ along with systemd; If not, see . ***/ +#pragma once + void sigbus_install(void); void sigbus_reset(void); diff --git a/src/shared/sleep-config.h b/src/shared/sleep-config.h index 51d2dec7b..5eda18ee3 100644 --- a/src/shared/sleep-config.h +++ b/src/shared/sleep-config.h @@ -19,6 +19,8 @@ along with systemd; If not, see . ***/ +#pragma once + int parse_sleep_config(const char *verb, char ***modes, char ***states); int can_sleep(const char *verb); diff --git a/src/udev/mtd_probe/mtd_probe.h b/src/udev/mtd_probe/mtd_probe.h index 2a37ede57..d99be9add 100644 --- a/src/udev/mtd_probe/mtd_probe.h +++ b/src/udev/mtd_probe/mtd_probe.h @@ -17,6 +17,8 @@ * Boston, MA 02110-1301 USA */ +#pragma once + #include /* Full oob structure as written on the flash */ diff --git a/src/udev/scsi_id/scsi.h b/src/udev/scsi_id/scsi.h index c423cac57..3f99ae772 100644 --- a/src/udev/scsi_id/scsi.h +++ b/src/udev/scsi_id/scsi.h @@ -10,6 +10,8 @@ * Free Software Foundation version 2 of the License. */ +#pragma once + #include struct scsi_ioctl_command { diff --git a/src/udev/scsi_id/scsi_id.h b/src/udev/scsi_id/scsi_id.h index 648b5ce42..141b116a8 100644 --- a/src/udev/scsi_id/scsi_id.h +++ b/src/udev/scsi_id/scsi_id.h @@ -15,6 +15,8 @@ * along with this program. If not, see . */ +#pragma once + #define MAX_PATH_LEN 512 /* diff --git a/src/udev/udevadm-util.h b/src/udev/udevadm-util.h index dba651fdd..37e4fe836 100644 --- a/src/udev/udevadm-util.h +++ b/src/udev/udevadm-util.h @@ -15,6 +15,8 @@ * along with this program. If not, see . */ +#pragma once + #include "udev.h" struct udev_device *find_device(struct udev *udev,