summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSven Eden <yamakuzure@gmx.net>2017-02-23 17:20:49 +0100
committerSven Eden <yamakuzure@gmx.net>2017-03-14 10:23:22 +0100
commitc6999740c1a68767c5397306b8d7e14e08533111 (patch)
tree124f416e54ea418a3538f3e53457aa809112ab69 /src
parent3c55423a96cf68ea1c947b512123de2f0bc95ec0 (diff)
Fixed gawk script for git-tar target.
The previous variant was nice and sleek. But unfortunately, there are constructs like: #if 0 (... old code ...) #else (... alternative code for elogind ...) #endif // 0 These fragments couldn't be handled by the old code, but can by the new one. To make this work, the precompiler macros must be set like shown above. Apart from that, all lines like: /// Any doxygen one-line-comments with elogind in it are removed are removed, too. Please note the three slashes. And finally, all commented out #include directives are removed as well.
Diffstat (limited to 'src')
-rw-r--r--src/basic/cgroup-util.c2
-rw-r--r--src/cgroups-agent/cgroups-agent.c4
-rw-r--r--src/core/cgroup.c2
-rw-r--r--src/login/loginctl.c2
-rw-r--r--src/login/logind-core.c6
5 files changed, 8 insertions, 8 deletions
diff --git a/src/basic/cgroup-util.c b/src/basic/cgroup-util.c
index bd17b5ee5..5dc631eee 100644
--- a/src/basic/cgroup-util.c
+++ b/src/basic/cgroup-util.c
@@ -2178,7 +2178,7 @@ int cg_unified(void) {
else if (F_TYPE_EQUAL(fs.f_type, TMPFS_MAGIC))
#else
if (F_TYPE_EQUAL(fs.f_type, TMPFS_MAGIC))
-#endif // elogind
+#endif // 0
unified_cache = false;
else
return -ENOEXEC;
diff --git a/src/cgroups-agent/cgroups-agent.c b/src/cgroups-agent/cgroups-agent.c
index 975ccaae2..e72c5c1e0 100644
--- a/src/cgroups-agent/cgroups-agent.c
+++ b/src/cgroups-agent/cgroups-agent.c
@@ -63,7 +63,7 @@ int main(int argc, char *argv[]) {
/* If dbus isn't running or responding, there is nothing
* we can do about it. */
log_debug_errno(r, "Failed to open system bus: %m");
-#endif
+#endif // 0
return EXIT_FAILURE;
}
@@ -77,7 +77,7 @@ int main(int argc, char *argv[]) {
log_debug_errno(r, "Failed to send signal message on private connection: %m");
#else
log_debug_errno(r, "Failed to send signal message: %m");
-#endif
+#endif // 0
return EXIT_FAILURE;
}
diff --git a/src/core/cgroup.c b/src/core/cgroup.c
index 1733521cd..c0bfecbe8 100644
--- a/src/core/cgroup.c
+++ b/src/core/cgroup.c
@@ -1297,7 +1297,7 @@ int manager_setup_cgroup(Manager *m) {
#else
return log_error_errno(EOPNOTSUPP, "Unified cgroup hierarchy not supported: %m");
-#endif // elogind
+#endif // 0
} else if (m->running_as == MANAGER_SYSTEM) {
/* On the legacy hierarchy we only get
* notifications via cgroup agents. (Which
diff --git a/src/login/loginctl.c b/src/login/loginctl.c
index 7b259ce21..080d64a0c 100644
--- a/src/login/loginctl.c
+++ b/src/login/loginctl.c
@@ -1538,7 +1538,7 @@ static int parse_argv(int argc, char *argv[]) {
#if 0
{ "lines", required_argument, NULL, 'n' },
{ "output", required_argument, NULL, 'o' },
-#endif //
+#endif // 0
{ "ignore-inhibitors", no_argument, NULL, 'i' },
{}
};
diff --git a/src/login/logind-core.c b/src/login/logind-core.c
index f8b2d4355..2b4d6ff0b 100644
--- a/src/login/logind-core.c
+++ b/src/login/logind-core.c
@@ -279,7 +279,7 @@ int manager_get_session_by_pid(Manager *m, pid_t pid, Session **session) {
_cleanup_free_ char *unit = NULL;
#else
_cleanup_free_ char *session_name = NULL;
-#endif
+#endif // 0
Session *s;
int r;
@@ -304,7 +304,7 @@ int manager_get_session_by_pid(Manager *m, pid_t pid, Session **session) {
s = hashmap_get(m->sessions, session_name);
log_debug_elogind("Session Name \"%s\" -> Session \"%s\"",
session_name, s && s->id ? s->id : "NULL");
-#endif
+#endif // 0
if (!s)
return 0;
@@ -320,7 +320,7 @@ int manager_get_user_by_pid(Manager *m, pid_t pid, User **user) {
User *u;
#else
Session *s;
-#endif
+#endif // 0
int r;
assert(m);