diff options
author | Sven Eden <yamakuzure@gmx.net> | 2017-02-07 06:50:04 +0100 |
---|---|---|
committer | Sven Eden <yamakuzure@gmx.net> | 2017-03-14 10:23:13 +0100 |
commit | fac657c58ae86c747674391e477d9af043b29e2e (patch) | |
tree | c5c20ca550767856125719acae7c89009af6a096 /src/login | |
parent | 14dbe3476e6a5e03d928dc35f48577efea6baf57 (diff) |
Remove src/basic/special.h, as all defines in there are systemd-only.
Diffstat (limited to 'src/login')
-rw-r--r-- | src/login/logind-dbus.c | 2 | ||||
-rw-r--r-- | src/login/logind-user.c | 8 | ||||
-rw-r--r-- | src/login/logind-utmp.c | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/src/login/logind-dbus.c b/src/login/logind-dbus.c index b0c15e253..ef0c13bc0 100644 --- a/src/login/logind-dbus.c +++ b/src/login/logind-dbus.c @@ -28,7 +28,7 @@ #include "strv.h" #include "mkdir.h" #include "path-util.h" -#include "special.h" +// #include "special.h" #include "sleep-config.h" #include "fileio-label.h" #include "unit-name.h" diff --git a/src/login/logind-user.c b/src/login/logind-user.c index 2733117c6..54c210835 100644 --- a/src/login/logind-user.c +++ b/src/login/logind-user.c @@ -30,7 +30,7 @@ #include "hashmap.h" #include "fileio.h" #include "path-util.h" -#include "special.h" +// #include "special.h" #include "unit-name.h" #include "bus-util.h" #include "bus-error.h" @@ -409,26 +409,26 @@ static int user_start_slice(User *u) { char lu[DECIMAL_STR_MAX(uid_t) + 1], *slice; sprintf(lu, UID_FMT, u->uid); - r = slice_build_subslice(SPECIAL_USER_SLICE, lu, &slice); + r = slice_build_subslice("user", lu, &slice); if (r < 0) return r; /// elogind : Do not try to use dbus to ask systemd #if 0 r = manager_start_unit(u->manager, slice, &error, &job); -#endif // 0 if (r < 0) { log_error("Failed to start user slice: %s", bus_error_message(&error, r)); free(slice); } else { +#endif // 0 u->slice = slice; /// elogind does not support slice jobs #if 0 free(u->slice_job); u->slice_job = job; -#endif // 0 } +#endif // 0 } if (u->slice) diff --git a/src/login/logind-utmp.c b/src/login/logind-utmp.c index 1e13ff01d..faa4fc733 100644 --- a/src/login/logind-utmp.c +++ b/src/login/logind-utmp.c @@ -26,7 +26,7 @@ #include "sd-messages.h" #include "strv.h" -#include "special.h" +// #include "special.h" #include "unit-name.h" #include "audit.h" #include "bus-util.h" |