It's quite specific anyway, hence let's move this where it's used
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;
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)
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;