summaryrefslogtreecommitdiff
path: root/src/systemctl.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-07-07 03:29:56 +0200
committerLennart Poettering <lennart@poettering.net>2011-07-07 03:29:56 +0200
commitabca4822916b85ae5b0b2bef5d458ea2225d25ab (patch)
tree9ae5467d12cfd4b518e8bd428666fb63573a62f5 /src/systemctl.c
parent1968a360405e302d4d2c2abc03a3314f81375156 (diff)
loginctl: add basic implementation of loginctl for introspecting controlling sessions/users/seats
Diffstat (limited to 'src/systemctl.c')
-rw-r--r--src/systemctl.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/systemctl.c b/src/systemctl.c
index 005b45d4fe..556070bcba 100644
--- a/src/systemctl.c
+++ b/src/systemctl.c
@@ -33,7 +33,6 @@
#include <sys/stat.h>
#include <stddef.h>
#include <sys/prctl.h>
-
#include <dbus/dbus.h>
#include "log.h"
@@ -278,22 +277,6 @@ static int translate_bus_error_to_exit_status(int r, const DBusError *error) {
return EXIT_FAILURE;
}
-static int bus_iter_get_basic_and_next(DBusMessageIter *iter, int type, void *data, bool next) {
-
- assert(iter);
- assert(data);
-
- if (dbus_message_iter_get_arg_type(iter) != type)
- return -EIO;
-
- dbus_message_iter_get_basic(iter, data);
-
- if (!dbus_message_iter_next(iter) != !next)
- return -EIO;
-
- return 0;
-}
-
static void warn_wall(enum action action) {
static const char *table[_ACTION_MAX] = {
[ACTION_HALT] = "The system is going down for system halt NOW!",