diff options
author | Mattias Andrée <maandree@operamail.com> | 2015-12-05 17:19:53 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2015-12-05 17:19:53 +0100 |
commit | 2736d90da3dd10a002d7576c70a51e05cc66e29b (patch) | |
tree | cd411c3c21ac5a5a24d1393990157ce7479c7ef5 /src | |
parent | m + bug fix (diff) | |
download | libpassphrase-2736d90da3dd10a002d7576c70a51e05cc66e29b.tar.gz libpassphrase-2736d90da3dd10a002d7576c70a51e05cc66e29b.tar.bz2 libpassphrase-2736d90da3dd10a002d7576c70a51e05cc66e29b.tar.xz |
m
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/echoes.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/echoes.c b/src/echoes.c index 7274e52..bc8d3ff 100644 --- a/src/echoes.c +++ b/src/echoes.c @@ -47,6 +47,9 @@ static struct termios saved_stty; /** * Disable echoing and do anything else to the terminal settnings `passphrase_read` requires */ +#if defined(__GNUC__) && !defined(NEED_TERMIOS) +__attribute__((const)) +#endif /* __GNUC__ && !NEED_TERMIOS */ void passphrase_disable_echo(void) { passphrase_disable_echo1(STDIN_FILENO); @@ -56,6 +59,9 @@ void passphrase_disable_echo(void) /** * Undo the actions of `passphrase_disable_echo` */ +#if defined(__GNUC__) && !defined(NEED_TERMIOS) +__attribute__((const)) +#endif /* __GNUC__ && !NEED_TERMIOS */ void passphrase_reenable_echo(void) { passphrase_reenable_echo1(STDIN_FILENO); |