From c9403dced7c3eb0cc2a925c6428ca30ef8527b55 Mon Sep 17 00:00:00 2001 From: Zbigniew Jędrzejewski-Szmek Date: Fri, 23 Jan 2015 09:20:59 -0500 Subject: #pragma once here and there --- src/analyze/analyze-verify.h | 2 ++ src/compat-libs/linkwarning.h | 2 ++ src/import/import-dkr.h | 2 ++ src/libsystemd-network/dhcp-server-internal.h | 2 ++ src/resolve/resolved-dns-domain.h | 2 ++ src/shared/btrfs-util.h | 2 ++ src/shared/gpt.h | 2 ++ src/shared/gunicode.h | 2 ++ src/shared/login-shared.h | 2 ++ src/shared/sigbus.h | 2 ++ src/shared/sleep-config.h | 2 ++ src/udev/mtd_probe/mtd_probe.h | 2 ++ src/udev/scsi_id/scsi.h | 2 ++ src/udev/scsi_id/scsi_id.h | 2 ++ src/udev/udevadm-util.h | 2 ++ 15 files changed, 30 insertions(+) diff --git a/src/analyze/analyze-verify.h b/src/analyze/analyze-verify.h index 5c86d9862b..f10c34c4ae 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 a2e9534a80..79ece9e7d1 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 51aacbe90b..633c767965 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 eb7d6d44d3..58750c4418 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 0888a7846f..36f27ea031 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 d5249d1bf1..1b9c142e5c 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 87308b0d2b..add1df420f 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 a4b2934a4b..e70818fdd7 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 b2787c9c62..a79f20c1b1 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 25593af2d4..23edc6d9cb 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 51d2dec7b4..5eda18ee38 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 2a37ede578..d99be9addc 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 c423cac574..3f99ae7724 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 648b5ce42a..141b116a88 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 dba651fddb..37e4fe8369 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, -- cgit v1.2.3-54-g00ecf