summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/basic/util.c9
-rw-r--r--src/basic/util.h2
-rw-r--r--src/login/pam_systemd.c9
3 files changed, 9 insertions, 11 deletions
diff --git a/src/basic/util.c b/src/basic/util.c
index ed91cabde5..93d610bc98 100644
--- a/src/basic/util.c
+++ b/src/basic/util.c
@@ -51,15 +51,6 @@ int saved_argc = 0;
char **saved_argv = NULL;
static int saved_in_initrd = -1;
-bool display_is_local(const char *display) {
- assert(display);
-
- return
- display[0] == ':' &&
- display[1] >= '0' &&
- display[1] <= '9';
-}
-
bool kexec_loaded(void) {
_cleanup_free_ char *s = NULL;
diff --git a/src/basic/util.h b/src/basic/util.h
index d1a8a8f3b4..469f3eee4d 100644
--- a/src/basic/util.h
+++ b/src/basic/util.h
@@ -43,8 +43,6 @@ static inline const char* enable_disable(bool b) {
return b ? "enable" : "disable";
}
-bool display_is_local(const char *display) _pure_;
-
#define NULSTR_FOREACH(i, l) \
for ((i) = (l); (i) && *(i); (i) = strchr((i), 0)+1)
diff --git a/src/login/pam_systemd.c b/src/login/pam_systemd.c
index 997b74eb88..8c90141ad9 100644
--- a/src/login/pam_systemd.c
+++ b/src/login/pam_systemd.c
@@ -115,6 +115,15 @@ static int get_user_data(
return PAM_SUCCESS;
}
+static bool display_is_local(const char *display) {
+ assert(display);
+
+ return
+ display[0] == ':' &&
+ display[1] >= '0' &&
+ display[1] <= '9';
+}
+
static int socket_from_display(const char *display, char **path) {
size_t k;
char *f, *c;