From fd91b35c5604b669668a15ec5beadcc36958d08d Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 22 Nov 2013 10:05:44 +0100 Subject: use namespacing MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/passphrase.c | 10 +++++----- src/passphrase.h | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) (limited to 'src') diff --git a/src/passphrase.c b/src/passphrase.c index a3ca289..724ff09 100644 --- a/src/passphrase.c +++ b/src/passphrase.c @@ -38,7 +38,7 @@ static struct termios saved_stty; * * @return The passphrase, should be wiped `free`:ed, `NULL` on error */ -char* get_passphrase(void) +char* passphrase_read(void) { /* malloc and realloc returns NULL if we run out of memory, we will not do that under normal usecases, if we do, it @@ -78,9 +78,9 @@ char* get_passphrase(void) /** - * Disable echoing and do anything else to the terminal settnings `get_passphrase` requires + * Disable echoing and do anything else to the terminal settnings `passphrase_read` requires */ -void disable_echo(void) +void passphrase_disable_echo(void) { struct termios stty; @@ -92,9 +92,9 @@ void disable_echo(void) /** - * Undo the actions of `disable_echo` + * Undo the actions of `passphrase_disable_echo` */ -void reenable_echo(void) +void passphrase_reenable_echo(void) { tcsetattr(STDIN_FILENO, TCSAFLUSH, &saved_stty); } diff --git a/src/passphrase.h b/src/passphrase.h index 9a1baa5..2114fbe 100644 --- a/src/passphrase.h +++ b/src/passphrase.h @@ -25,17 +25,17 @@ * * @return The passphrase, should be wiped `free`:ed, `NULL` on error */ -extern char* get_passphrase(void); +extern char* passphrase_read(void); /** - * Disable echoing and do anything else to the terminal settnings `get_passphrase` requires + * Disable echoing and do anything else to the terminal settnings `passphrase_read` requires */ -extern void disable_echo(void); +extern void passphrase_disable_echo(void); /** - * Undo the actions of `disable_echo` + * Undo the actions of `passphrase_disable_echo` */ -extern void reenable_echo(void); +extern void passphrase_reenable_echo(void); #endif -- cgit v1.2.3-70-g09d2