diff options
author | Lennart Poettering <lennart@poettering.net> | 2018-02-14 17:30:37 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2018-02-14 17:30:37 +0100 |
commit | 7b91264852f63ba7f775dfb4a82cc2b64d4a61bc (patch) | |
tree | 84cca750eb5b28ed0a151377a8ac4ef7435d1370 /src/basic/terminal-util.h | |
parent | bef41af2332252e4e1774ccba23eba6aef959074 (diff) | |
download | systemd-7b91264852f63ba7f775dfb4a82cc2b64d4a61bc.tar.gz systemd-7b91264852f63ba7f775dfb4a82cc2b64d4a61bc.tar.bz2 systemd-7b91264852f63ba7f775dfb4a82cc2b64d4a61bc.zip |
terminal-util: make resolve_dev_console() less weird
Let's normalize the behaviour: return a negative errno style error code,
and return the resolved string directly as argument.
Diffstat (limited to 'src/basic/terminal-util.h')
-rw-r--r-- | src/basic/terminal-util.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/basic/terminal-util.h b/src/basic/terminal-util.h index e13d441a25..f6e6020b66 100644 --- a/src/basic/terminal-util.h +++ b/src/basic/terminal-util.h @@ -82,7 +82,7 @@ int ask_string(char **ret, const char *text, ...) _printf_(2, 3); int vt_disallocate(const char *name); -char *resolve_dev_console(char **active); +int resolve_dev_console(char **ret); int get_kernel_consoles(char ***ret); bool tty_is_vc(const char *tty); bool tty_is_vc_resolve(const char *tty); |