From 05d3a176239c1dd67863c70a5b79d9bc14144ef6 Mon Sep 17 00:00:00 2001 From: Shawn Landden Date: Mon, 18 Nov 2013 07:58:43 -0800 Subject: use #pragma once instead of foo*foo define guards --- src/shared/audit.h | 5 +---- src/shared/capability.h | 5 +---- src/shared/cgroup-show.h | 5 +---- src/shared/conf-files.h | 5 +---- src/shared/hwclock.h | 5 +---- src/shared/spawn-polkit-agent.h | 5 +---- 6 files changed, 6 insertions(+), 24 deletions(-) (limited to 'src/shared') diff --git a/src/shared/audit.h b/src/shared/audit.h index 490a0b0320..0effc0baa0 100644 --- a/src/shared/audit.h +++ b/src/shared/audit.h @@ -1,7 +1,6 @@ /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ -#ifndef fooaudithfoo -#define fooaudithfoo +#pragma once /*** This file is part of systemd. @@ -28,5 +27,3 @@ int audit_session_from_pid(pid_t pid, uint32_t *id); int audit_loginuid_from_pid(pid_t pid, uid_t *uid); - -#endif diff --git a/src/shared/capability.h b/src/shared/capability.h index 6cb31bb510..59469e56cb 100644 --- a/src/shared/capability.h +++ b/src/shared/capability.h @@ -1,7 +1,6 @@ /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ -#ifndef foocapabilityhfoo -#define foocapabilityhfoo +#pragma once /*** This file is part of systemd. @@ -29,5 +28,3 @@ unsigned long cap_last_cap(void); int have_effective_cap(int value); int capability_bounding_set_drop(uint64_t drop, bool right_now); int capability_bounding_set_drop_usermode(uint64_t drop); - -#endif diff --git a/src/shared/cgroup-show.h b/src/shared/cgroup-show.h index 72bc8a650f..3146f56cad 100644 --- a/src/shared/cgroup-show.h +++ b/src/shared/cgroup-show.h @@ -1,7 +1,6 @@ /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ -#ifndef foocgroupshowhfoo -#define foocgroupshowhfoo +#pragma once /*** This file is part of systemd. @@ -32,5 +31,3 @@ int show_cgroup(const char *controller, const char *path, const char *prefix, un int show_cgroup_and_extra_by_spec(const char *spec, const char *prefix, unsigned n_columns, bool kernel_threads, const pid_t extra_pids[], unsigned n_extra_pids, OutputFlags flags); int show_cgroup_and_extra(const char *controller, const char *path, const char *prefix, unsigned n_columns, bool kernel_threads, const pid_t extra_pids[], unsigned n_extra_pids, OutputFlags flags); - -#endif diff --git a/src/shared/conf-files.h b/src/shared/conf-files.h index 3bd3d2f3d4..368c112eb3 100644 --- a/src/shared/conf-files.h +++ b/src/shared/conf-files.h @@ -1,7 +1,6 @@ /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ -#ifndef fooconffileshfoo -#define fooconffileshfoo +#pragma once /*** This file is part of systemd. @@ -28,5 +27,3 @@ int conf_files_list(char ***strv, const char *suffix, const char *root, const char *dir, ...); int conf_files_list_strv(char ***strv, const char *suffix, const char *root, const char* const* dirs); int conf_files_list_nulstr(char ***strv, const char *suffix, const char *root, const char *dirs); - -#endif diff --git a/src/shared/hwclock.h b/src/shared/hwclock.h index b2bdc78f0c..4330b8ea87 100644 --- a/src/shared/hwclock.h +++ b/src/shared/hwclock.h @@ -1,7 +1,6 @@ /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ -#ifndef foohwclockhfoo -#define foohwclockhfoo +#pragma once /*** This file is part of systemd. @@ -27,5 +26,3 @@ int hwclock_set_timezone(int *min); int hwclock_reset_timezone(void); int hwclock_get_time(struct tm *tm); int hwclock_set_time(const struct tm *tm); - -#endif diff --git a/src/shared/spawn-polkit-agent.h b/src/shared/spawn-polkit-agent.h index b91d20f120..c3bc1b845e 100644 --- a/src/shared/spawn-polkit-agent.h +++ b/src/shared/spawn-polkit-agent.h @@ -1,7 +1,6 @@ /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ -#ifndef foospawnpolkitagenthfoo -#define foospawnpolkitagenthfoo +#pragma once /*** This file is part of systemd. @@ -24,5 +23,3 @@ int polkit_agent_open(void); void polkit_agent_close(void); - -#endif -- cgit v1.2.3-54-g00ecf