summaryrefslogtreecommitdiff
path: root/src/grp-login/systemd-logind/logind-dbus.c
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2016-09-11 22:56:30 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2016-09-11 22:56:30 -0400
commitfa89550518af96a8804749c0ab0916599a94c1da (patch)
tree57db50190ad4bcdbc9ef54efc528db4286daedac /src/grp-login/systemd-logind/logind-dbus.c
parentf4b50a2aa19f5a99008565f4127952ea8f2e4f61 (diff)
Run the new fixup script.
The biggest change is that it keeps looking for new #include blocks. This means that it (more) correctly handles #ifdef'd #includes. I'm not 100% in love with it, but it's pretty good for automated. What I really don't like is it did some silly things with newlines in typedef blocks. I've avoided committing those. I think it may be possible to get it to do the right thing. But really, the typedef blocks are a hack for poorly structured headers. Now that it keeps looking for new #include blocks, I could strip out the typedef support, and it would mostly work; but it wouldn't be able to move some headers back to the top. IDK what to do.
Diffstat (limited to 'src/grp-login/systemd-logind/logind-dbus.c')
-rw-r--r--src/grp-login/systemd-logind/logind-dbus.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/grp-login/systemd-logind/logind-dbus.c b/src/grp-login/systemd-logind/logind-dbus.c
index cb51e43a5c..282ba64a3d 100644
--- a/src/grp-login/systemd-logind/logind-dbus.c
+++ b/src/grp-login/systemd-logind/logind-dbus.c
@@ -41,7 +41,6 @@
#include "basic/terminal-util.h"
#include "basic/unit-name.h"
#include "basic/user-util.h"
-#include "logind.h"
#include "sd-bus/bus-common-errors.h"
#include "sd-bus/bus-error.h"
#include "shared/bus-util.h"
@@ -50,6 +49,8 @@
#include "shared/udev-util.h"
#include "shared/utmp-wtmp.h"
+#include "logind.h"
+
int manager_get_session_from_creds(Manager *m, sd_bus_message *message, const char *name, sd_bus_error *error, Session **ret) {
_cleanup_(sd_bus_creds_unrefp) sd_bus_creds *creds = NULL;
Session *session;