summaryrefslogtreecommitdiff
path: root/src/basic/terminal-util.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2018-02-14 17:30:37 +0100
committerLennart Poettering <lennart@poettering.net>2018-02-14 17:30:37 +0100
commit7b91264852f63ba7f775dfb4a82cc2b64d4a61bc (patch)
tree84cca750eb5b28ed0a151377a8ac4ef7435d1370 /src/basic/terminal-util.h
parentbef41af2332252e4e1774ccba23eba6aef959074 (diff)
downloadsystemd-7b91264852f63ba7f775dfb4a82cc2b64d4a61bc.tar.gz
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.h2
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);