diff options
Diffstat (limited to 'src/login')
-rw-r--r-- | src/login/inhibit.c | 1 | ||||
-rw-r--r-- | src/login/loginctl.c | 1 | ||||
-rw-r--r-- | src/login/logind-acl.c | 1 | ||||
-rw-r--r-- | src/login/logind-action.c | 1 | ||||
-rw-r--r-- | src/login/logind-action.h | 1 | ||||
-rw-r--r-- | src/login/logind-button.c | 3 | ||||
-rw-r--r-- | src/login/logind-button.h | 2 | ||||
-rw-r--r-- | src/login/logind-core.c | 3 | ||||
-rw-r--r-- | src/login/logind-dbus.c | 4 | ||||
-rw-r--r-- | src/login/logind-device.c | 1 | ||||
-rw-r--r-- | src/login/logind-device.h | 2 | ||||
-rw-r--r-- | src/login/logind-inhibit.c | 1 | ||||
-rw-r--r-- | src/login/logind-inhibit.h | 3 | ||||
-rw-r--r-- | src/login/logind-seat.c | 5 | ||||
-rw-r--r-- | src/login/logind-seat.h | 3 | ||||
-rw-r--r-- | src/login/logind-session-device.c | 4 | ||||
-rw-r--r-- | src/login/logind-session-device.h | 4 | ||||
-rw-r--r-- | src/login/logind-session.c | 2 | ||||
-rw-r--r-- | src/login/logind-session.h | 4 | ||||
-rw-r--r-- | src/login/logind-user.c | 1 | ||||
-rw-r--r-- | src/login/logind-user.h | 2 | ||||
-rw-r--r-- | src/login/logind.c | 3 | ||||
-rw-r--r-- | src/login/logind.h | 5 | ||||
-rw-r--r-- | src/login/test-inhibit.c | 1 | ||||
-rw-r--r-- | src/login/user-sessions.c | 1 |
25 files changed, 0 insertions, 59 deletions
diff --git a/src/login/inhibit.c b/src/login/inhibit.c index 44bda34aff..fcc8d72235 100644 --- a/src/login/inhibit.c +++ b/src/login/inhibit.c @@ -20,7 +20,6 @@ ***/ #include <getopt.h> -#include <assert.h> #include <stdlib.h> #include <stdio.h> #include <unistd.h> diff --git a/src/login/loginctl.c b/src/login/loginctl.c index 13b8102483..ec102ae4c7 100644 --- a/src/login/loginctl.c +++ b/src/login/loginctl.c @@ -23,7 +23,6 @@ #include <errno.h> #include <string.h> #include <getopt.h> -#include <pwd.h> #include <locale.h> #include "sd-bus.h" diff --git a/src/login/logind-acl.c b/src/login/logind-acl.c index 5856f9079d..941fd724a5 100644 --- a/src/login/logind-acl.c +++ b/src/login/logind-acl.c @@ -19,7 +19,6 @@ along with systemd; If not, see <http://www.gnu.org/licenses/>. ***/ -#include <assert.h> #include <errno.h> #include <string.h> diff --git a/src/login/logind-action.c b/src/login/logind-action.c index 0844df20a9..20c1c89eee 100644 --- a/src/login/logind-action.c +++ b/src/login/logind-action.c @@ -21,7 +21,6 @@ #include <unistd.h> -#include "sd-messages.h" #include "conf-parser.h" #include "special.h" #include "sleep-config.h" diff --git a/src/login/logind-action.h b/src/login/logind-action.h index e9b424b5f6..ff98065371 100644 --- a/src/login/logind-action.h +++ b/src/login/logind-action.h @@ -36,7 +36,6 @@ typedef enum HandleAction { } HandleAction; #include "logind.h" -#include "logind-inhibit.h" int manager_handle_action( Manager *m, diff --git a/src/login/logind-button.c b/src/login/logind-button.c index d7211e66ce..610adc513e 100644 --- a/src/login/logind-button.c +++ b/src/login/logind-button.c @@ -19,7 +19,6 @@ along with systemd; If not, see <http://www.gnu.org/licenses/>. ***/ -#include <assert.h> #include <string.h> #include <errno.h> #include <fcntl.h> @@ -28,9 +27,7 @@ #include <linux/input.h> #include "sd-messages.h" -#include "conf-parser.h" #include "util.h" -#include "special.h" #include "logind-button.h" Button* button_new(Manager *m, const char *name) { diff --git a/src/login/logind-button.h b/src/login/logind-button.h index 72a612e914..80d93c7e6b 100644 --- a/src/login/logind-button.h +++ b/src/login/logind-button.h @@ -23,8 +23,6 @@ typedef struct Button Button; -#include "list.h" -#include "util.h" #include "logind.h" struct Button { diff --git a/src/login/logind-core.c b/src/login/logind-core.c index a6ff5add95..e8da59a182 100644 --- a/src/login/logind-core.c +++ b/src/login/logind-core.c @@ -20,16 +20,13 @@ ***/ #include <sys/types.h> -#include <sys/stat.h> #include <sys/ioctl.h> #include <fcntl.h> #include <pwd.h> -#include <unistd.h> #include <linux/vt.h> #include "strv.h" #include "cgroup-util.h" -#include "audit.h" #include "bus-util.h" #include "bus-error.h" #include "udev-util.h" diff --git a/src/login/logind-dbus.c b/src/login/logind-dbus.c index 5d61edbd46..3322d66aa9 100644 --- a/src/login/logind-dbus.c +++ b/src/login/logind-dbus.c @@ -24,7 +24,6 @@ #include <unistd.h> #include <pwd.h> -#include "sd-id128.h" #include "sd-messages.h" #include "strv.h" #include "mkdir.h" @@ -32,10 +31,7 @@ #include "special.h" #include "sleep-config.h" #include "fileio-label.h" -#include "label.h" -#include "utf8.h" #include "unit-name.h" -#include "virt.h" #include "audit.h" #include "bus-util.h" #include "bus-error.h" diff --git a/src/login/logind-device.c b/src/login/logind-device.c index 76c5a5c88f..ee4c45fb8d 100644 --- a/src/login/logind-device.c +++ b/src/login/logind-device.c @@ -19,7 +19,6 @@ along with systemd; If not, see <http://www.gnu.org/licenses/>. ***/ -#include <assert.h> #include <string.h> #include "util.h" diff --git a/src/login/logind-device.h b/src/login/logind-device.h index c273d2bfa0..6b2728586c 100644 --- a/src/login/logind-device.h +++ b/src/login/logind-device.h @@ -24,8 +24,6 @@ typedef struct Device Device; #include "list.h" -#include "util.h" -#include "logind.h" #include "logind-seat.h" #include "logind-session-device.h" diff --git a/src/login/logind-inhibit.c b/src/login/logind-inhibit.c index 84fee0e773..5d81693e6c 100644 --- a/src/login/logind-inhibit.c +++ b/src/login/logind-inhibit.c @@ -26,7 +26,6 @@ #include "util.h" #include "mkdir.h" -#include "path-util.h" #include "logind-inhibit.h" #include "fileio.h" diff --git a/src/login/logind-inhibit.h b/src/login/logind-inhibit.h index f767876a4c..1b77fc1e9e 100644 --- a/src/login/logind-inhibit.h +++ b/src/login/logind-inhibit.h @@ -23,8 +23,6 @@ typedef struct Inhibitor Inhibitor; -#include "list.h" -#include "util.h" typedef enum InhibitWhat { INHIBIT_SHUTDOWN = 1, @@ -46,7 +44,6 @@ typedef enum InhibitMode { } InhibitMode; #include "logind.h" -#include "logind-seat.h" struct Inhibitor { Manager *manager; diff --git a/src/login/logind-seat.c b/src/login/logind-seat.c index 126c5b84cc..49808c928b 100644 --- a/src/login/logind-seat.c +++ b/src/login/logind-seat.c @@ -19,21 +19,16 @@ along with systemd; If not, see <http://www.gnu.org/licenses/>. ***/ -#include <assert.h> #include <errno.h> #include <unistd.h> #include <fcntl.h> -#include <sys/ioctl.h> -#include <linux/vt.h> #include <string.h> -#include "sd-id128.h" #include "sd-messages.h" #include "logind-seat.h" #include "logind-acl.h" #include "util.h" #include "mkdir.h" -#include "path-util.h" Seat *seat_new(Manager *m, const char *id) { Seat *s; diff --git a/src/login/logind-seat.h b/src/login/logind-seat.h index 15f11b85ab..2a0f574be6 100644 --- a/src/login/logind-seat.h +++ b/src/login/logind-seat.h @@ -24,9 +24,6 @@ typedef struct Seat Seat; #include "list.h" -#include "util.h" -#include "logind.h" -#include "logind-device.h" #include "logind-session.h" struct Seat { diff --git a/src/login/logind-session-device.c b/src/login/logind-session-device.c index c2de862250..656f268dba 100644 --- a/src/login/logind-session-device.c +++ b/src/login/logind-session-device.c @@ -19,16 +19,12 @@ along with systemd; If not, see <http://www.gnu.org/licenses/>. ***/ -#include <assert.h> #include <fcntl.h> #include <libudev.h> #include <linux/input.h> -#include <linux/ioctl.h> #include <string.h> #include <sys/ioctl.h> -#include <sys/stat.h> #include <sys/types.h> -#include <unistd.h> #include "util.h" #include "missing.h" diff --git a/src/login/logind-session-device.h b/src/login/logind-session-device.h index 61a843d09d..1c9f998371 100644 --- a/src/login/logind-session-device.h +++ b/src/login/logind-session-device.h @@ -25,11 +25,7 @@ typedef enum DeviceType DeviceType; typedef struct SessionDevice SessionDevice; #include "list.h" -#include "util.h" #include "logind.h" -#include "logind-device.h" -#include "logind-seat.h" -#include "logind-session.h" enum DeviceType { DEVICE_TYPE_UNKNOWN, diff --git a/src/login/logind-session.c b/src/login/logind-session.c index a02a537f7c..ce5dbb4d5c 100644 --- a/src/login/logind-session.c +++ b/src/login/logind-session.c @@ -28,9 +28,7 @@ #include <sys/ioctl.h> #include <unistd.h> -#include "sd-id128.h" #include "sd-messages.h" -#include "strv.h" #include "util.h" #include "mkdir.h" #include "path-util.h" diff --git a/src/login/logind-session.h b/src/login/logind-session.h index 3ec9d84f96..0505f7f0bd 100644 --- a/src/login/logind-session.h +++ b/src/login/logind-session.h @@ -25,10 +25,6 @@ typedef struct Session Session; typedef enum KillWho KillWho; #include "list.h" -#include "util.h" -#include "logind.h" -#include "logind-seat.h" -#include "logind-session-device.h" #include "logind-user.h" #include "login-shared.h" diff --git a/src/login/logind-user.c b/src/login/logind-user.c index f4c4490e8f..294c1e799c 100644 --- a/src/login/logind-user.c +++ b/src/login/logind-user.c @@ -27,7 +27,6 @@ #include "util.h" #include "mkdir.h" #include "hashmap.h" -#include "strv.h" #include "fileio.h" #include "path-util.h" #include "special.h" diff --git a/src/login/logind-user.h b/src/login/logind-user.h index 2cb57e1675..be5b56883c 100644 --- a/src/login/logind-user.h +++ b/src/login/logind-user.h @@ -24,9 +24,7 @@ typedef struct User User; #include "list.h" -#include "util.h" #include "logind.h" -#include "logind-session.h" typedef enum UserState { USER_OFFLINE, /* Not logged in at all */ diff --git a/src/login/logind.c b/src/login/logind.c index b44f376427..08a7cbc08a 100644 --- a/src/login/logind.c +++ b/src/login/logind.c @@ -24,13 +24,10 @@ #include <fcntl.h> #include <string.h> #include <unistd.h> -#include <linux/vt.h> -#include <sys/timerfd.h> #include "sd-daemon.h" #include "strv.h" #include "conf-parser.h" -#include "mkdir.h" #include "bus-util.h" #include "bus-error.h" #include "logind.h" diff --git a/src/login/logind.h b/src/login/logind.h index e0cb7d0238..48e647ae82 100644 --- a/src/login/logind.h +++ b/src/login/logind.h @@ -22,12 +22,10 @@ ***/ #include <stdbool.h> -#include <inttypes.h> #include <libudev.h> #include "sd-event.h" #include "sd-bus.h" -#include "util.h" #include "list.h" #include "hashmap.h" #include "set.h" @@ -35,9 +33,6 @@ typedef struct Manager Manager; #include "logind-device.h" -#include "logind-seat.h" -#include "logind-session.h" -#include "logind-user.h" #include "logind-inhibit.h" #include "logind-button.h" #include "logind-action.h" diff --git a/src/login/test-inhibit.c b/src/login/test-inhibit.c index 274687d20f..03516de916 100644 --- a/src/login/test-inhibit.c +++ b/src/login/test-inhibit.c @@ -25,7 +25,6 @@ #include "util.h" #include "sd-bus.h" #include "bus-util.h" -#include "bus-error.h" static int inhibit(sd_bus *bus, const char *what) { _cleanup_bus_message_unref_ sd_bus_message *reply = NULL; diff --git a/src/login/user-sessions.c b/src/login/user-sessions.c index 6edb823e8c..1c31769fde 100644 --- a/src/login/user-sessions.c +++ b/src/login/user-sessions.c @@ -19,7 +19,6 @@ along with systemd; If not, see <http://www.gnu.org/licenses/>. ***/ -#include <string.h> #include <unistd.h> #include <errno.h> |