chiark / gitweb /
use #pragma once instead of foo*foo define guards
authorShawn Landden <shawn@churchofgit.com>
Mon, 18 Nov 2013 15:58:43 +0000 (07:58 -0800)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 19 Nov 2013 01:28:54 +0000 (20:28 -0500)
14 files changed:
src/core/killall.h
src/core/switch-root.h
src/core/syscall-list.h
src/core/transaction.h
src/login/logind-action.h
src/login/logind-button.h
src/login/logind-inhibit.h
src/nss-myhostname/ifconf.h
src/shared/audit.h
src/shared/capability.h
src/shared/cgroup-show.h
src/shared/conf-files.h
src/shared/hwclock.h
src/shared/spawn-polkit-agent.h

index d08ac142f0fc93049d35e049bf99cf5f4abd2d8e..95b110fae14b711f93b63ece506c4fb2c0c17c3a 100644 (file)
@@ -1,7 +1,6 @@
 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
 
-#ifndef fookillallhfoo
-#define fookillallhfoo
+#pragma once
 
 /***
   This file is part of systemd.
@@ -23,5 +22,3 @@
 ***/
 
 void broadcast_signal(int sig, bool wait);
-
-#endif
index 0c4cd1e40312699b3fee66ade02d2328d5cd87a5..ab493b5fb18d46cba95e540fb9368ac5e7089ca9 100644 (file)
@@ -1,7 +1,6 @@
 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
 
-#ifndef fooswitchroothfoo
-#define fooswitchroothfoo
+#pragma once
 
 /***
   This file is part of systemd.
@@ -23,5 +22,3 @@
 ***/
 
 int switch_root(const char *switch_root);
-
-#endif
index 6bb4d91f914672e84ff7a71bc31e1877eb2f3862..37efc5681dd0368a8c9f9067db711ff8c71f1d3c 100644 (file)
@@ -1,7 +1,6 @@
 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
 
-#ifndef foosyscalllisthfoo
-#define foosyscalllisthfoo
+#pragma once
 
 /***
   This file is part of systemd.
@@ -40,5 +39,3 @@ const char *syscall_to_name(int id);
 int syscall_from_name(const char *name);
 
 int syscall_max(void);
-
-#endif
index 12f9194927c5b3c1ab33064418f9eb006b8bcec6..b6ee237ef8b1f42833da2d73561af9d77ecf2282 100644 (file)
@@ -1,7 +1,6 @@
 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
 
-#ifndef footransactionhfoo
-#define footransactionhfoo
+#pragma once
 
 /***
   This file is part of systemd.
@@ -53,5 +52,3 @@ int transaction_add_job_and_dependencies(
 int transaction_activate(Transaction *tr, Manager *m, JobMode mode, DBusError *e);
 int transaction_add_isolate_jobs(Transaction *tr, Manager *m);
 void transaction_abort(Transaction *tr);
-
-#endif
index 552713637d13a95612bde2f57c4b873e9f668200..74f71441f9cc0c4196c62dfd6cbba8474e510c02 100644 (file)
@@ -1,7 +1,6 @@
 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
 
-#ifndef foologindactionhfoo
-#define foologindactionhfoo
+#pragma once
 
 /***
   This file is part of systemd.
@@ -50,5 +49,3 @@ const char* handle_action_to_string(HandleAction h) _const_;
 HandleAction handle_action_from_string(const char *s) _pure_;
 
 int config_parse_handle_action(const char *unit, const char *filename, unsigned line, const char *section, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
-
-#endif
index 83bf1fc70cb3503b18ab55ed5bb599b6c289c94b..824106cd24e5d3e8278ec666f5190ac57c1513e2 100644 (file)
@@ -1,7 +1,6 @@
 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
 
-#ifndef foologindbuttonhfoo
-#define foologindbuttonhfoo
+#pragma once
 
 /***
   This file is part of systemd.
@@ -45,5 +44,3 @@ void button_free(Button*b);
 int button_open(Button *b);
 int button_recheck(Button *b);
 int button_set_seat(Button *b, const char *sn);
-
-#endif
index ed3b2ebcc375de69dc8c538fe8f16ebe95ab7a1a..da3d7e736e8a6874a4f5a7eb7a6797263403d971 100644 (file)
@@ -1,7 +1,6 @@
 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
 
-#ifndef foologindinhibithfoo
-#define foologindinhibithfoo
+#pragma once
 
 /***
   This file is part of systemd.
@@ -93,5 +92,3 @@ InhibitWhat inhibit_what_from_string(const char *s);
 
 const char *inhibit_mode_to_string(InhibitMode k);
 InhibitMode inhibit_mode_from_string(const char *s);
-
-#endif
index 2764a0aa0fc89d834241a630c45167fe9525441e..cd598d2b43db7c9fbaf8e1d9b8a316995022497a 100644 (file)
@@ -1,9 +1,6 @@
 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
 
-#ifndef fooifconfhfoo
-#define fooifconfhfoo
-
-#include <sys/socket.h>
+#pragma once
 
 /***
   This file is part of systemd.
@@ -27,6 +24,7 @@
 #include <inttypes.h>
 #include <sys/types.h>
 #include <assert.h>
+#include <sys/socket.h>
 
 struct address {
         unsigned char family;
@@ -68,6 +66,3 @@ static inline int address_compare(const void *_a, const void *_b) {
 
         return 0;
 }
-
-
-#endif
index 490a0b03208f34904d9c92b662b4f8a286a8aad4..0effc0baa04fccc14a3f5a34ba0418fb6a3960c6 100644 (file)
@@ -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
index 6cb31bb51067de6b9bea0f1aa406bdab14505ef2..59469e56cbc14ccb477b07618e51954898b976ad 100644 (file)
@@ -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
index 72bc8a650fab8332b4f87ce07ac09650e7c12716..3146f56cad247b50e10e73a1157ab32c9da2c05d 100644 (file)
@@ -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
index 3bd3d2f3d49661c77a14ece38ebef3d16b72890e..368c112eb313c38fc7e5f889103220d8cccc2a63 100644 (file)
@@ -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
index b2bdc78f0cd139868bf6f97ef674624898958697..4330b8ea87f17df91ae13b5c3227c44e8ddd613e 100644 (file)
@@ -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
index b91d20f1200eec40933bc0977e870c325d9bc4cd..c3bc1b845e60bf531e9feccbf0868267c71f5634 100644 (file)
@@ -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