diff options
author | Franck Bui <fbui@suse.com> | 2019-10-15 16:43:17 +0200 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2019-10-16 10:45:25 +0900 |
commit | a03cdb173e99e00cd5b720559093fcd71c9826e4 (patch) | |
tree | 3685a58909083125be53b18f208f3818301d8878 | |
parent | 74f632aca402cdbffb6295d49656965fbf915137 (diff) | |
download | systemd-a03cdb173e99e00cd5b720559093fcd71c9826e4.tar.gz |
logind: make session_prepare_vt() static
-rw-r--r-- | src/login/logind-session.c | 2 | ||||
-rw-r--r-- | src/login/logind-session.h | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/src/login/logind-session.c b/src/login/logind-session.c index 7e8025a0ea..68468464cd 100644 --- a/src/login/logind-session.c +++ b/src/login/logind-session.c @@ -1183,7 +1183,7 @@ static int session_open_vt(Session *s) { return s->vtfd; } -int session_prepare_vt(Session *s) { +static int session_prepare_vt(Session *s) { int vt, r; struct vt_mode mode = {}; diff --git a/src/login/logind-session.h b/src/login/logind-session.h index 50fe29e797..28b01d2b9a 100644 --- a/src/login/logind-session.h +++ b/src/login/logind-session.h @@ -161,7 +161,6 @@ KillWho kill_who_from_string(const char *s) _pure_; const char* tty_validity_to_string(TTYValidity t) _const_; TTYValidity tty_validity_from_string(const char *s) _pure_; -int session_prepare_vt(Session *s); void session_leave_vt(Session *s); bool session_is_controller(Session *s, const char *sender); |