diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2022-04-07 14:51:55 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2022-04-07 18:25:55 +0200 |
commit | a7fc59c70b4b99b64a1c7ac6cb4b5f7e85c8a133 (patch) | |
tree | 3d34d1036e969e42a0f56ded0ca05f78ab910dd8 /src | |
parent | Merge parse-socket-bind-item.? into parse-helpers.? (diff) | |
download | systemd-a7fc59c70b4b99b64a1c7ac6cb4b5f7e85c8a133.tar.xz systemd-a7fc59c70b4b99b64a1c7ac6cb4b5f7e85c8a133.zip |
various: add missing "#pragma once"
Diffstat (limited to 'src')
-rw-r--r-- | src/basic/missing_syscall_def.h | 1 | ||||
-rw-r--r-- | src/basic/missing_syscalls.py | 1 | ||||
-rw-r--r-- | src/boot/efi/xbootldr.h | 1 | ||||
-rw-r--r-- | src/network/networkd-wiphy.h | 1 |
4 files changed, 4 insertions, 0 deletions
diff --git a/src/basic/missing_syscall_def.h b/src/basic/missing_syscall_def.h index d078bf70df..88df92db61 100644 --- a/src/basic/missing_syscall_def.h +++ b/src/basic/missing_syscall_def.h @@ -4,6 +4,7 @@ * Use 'ninja -C build update-syscall-tables' to download new syscall tables, * and 'ninja -C build update-syscall-header' to regenerate this file. */ +#pragma once /* Note: if this code looks strange, this is because it is derived from the same * template as the per-syscall blocks below. */ diff --git a/src/basic/missing_syscalls.py b/src/basic/missing_syscalls.py index 2694e83b98..83199bb1d7 100644 --- a/src/basic/missing_syscalls.py +++ b/src/basic/missing_syscalls.py @@ -142,6 +142,7 @@ def print_syscall_defs(syscalls, tables, out): * Use 'ninja -C build update-syscall-tables' to download new syscall tables, * and 'ninja -C build update-syscall-header' to regenerate this file. */ +#pragma once ''', file=out) print(ARCH_CHECK, file=out) diff --git a/src/boot/efi/xbootldr.h b/src/boot/efi/xbootldr.h index 4cb370af29..205ce71edf 100644 --- a/src/boot/efi/xbootldr.h +++ b/src/boot/efi/xbootldr.h @@ -1,4 +1,5 @@ /* SPDX-License-Identifier: LGPL-2.1-or-later */ +#pragma once #include <efi.h> diff --git a/src/network/networkd-wiphy.h b/src/network/networkd-wiphy.h index 072a7e5fdd..b40354704b 100644 --- a/src/network/networkd-wiphy.h +++ b/src/network/networkd-wiphy.h @@ -1,4 +1,5 @@ /* SPDX-License-Identifier: LGPL-2.1-or-later */ +#pragma once #include <inttypes.h> |