aboutsummaryrefslogtreecommitdiffstats
path: root/g10/passphrase.c
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2022-09-13 07:34:00 +0000
committerNIIBE Yutaka <[email protected]>2022-09-13 07:34:00 +0000
commit87d4338ed1d258817d02701127431dc4029fd722 (patch)
tree2fa594b535907f522fa55bf8b1f359b677bb3714 /g10/passphrase.c
parentsm: Fix reporting of bad passphrase error (diff)
downloadgnupg-87d4338ed1d258817d02701127431dc4029fd722.tar.gz
gnupg-87d4338ed1d258817d02701127431dc4029fd722.zip
gpg,common,scd,sm: Function prototype fixes for modern compiler.
* common/gettime.c (gnupg_get_time): It has no arguments. * common/signal.c (gnupg_block_all_signals): Likewise. (gnupg_unblock_all_signals): Likewise. * common/utf8conv.c (get_native_charset): Likewise. * g10/cpr.c (is_status_enabled, cpr_enabled): Likewise. * g10/getkey.c (getkey_disable_caches): Likewise. * g10/keygen.c (ask_expiredate): Likewise. * g10/passphrase.c (have_static_passphrase): Likewise. (get_last_passphrase): Likewise. * g10/tdbio.c (tdbio_is_dirty, tdbio_sync): Likewise. (tdbio_get_dbname, open_db, tdbio_db_matches_options): Likewise. (tdbio_read_nextcheck): Likewise. * g10/trustdb.c (how_to_fix_the_trustdb): Likewise. * scd/scdaemon.c (scd_get_socket_name): Likewise. * sm/passphrase.c (have_static_passphrase): Likewise. -- Signed-off-by: NIIBE Yutaka <[email protected]>
Diffstat (limited to 'g10/passphrase.c')
-rw-r--r--g10/passphrase.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/g10/passphrase.c b/g10/passphrase.c
index 604452d46..c5ec8eae4 100644
--- a/g10/passphrase.c
+++ b/g10/passphrase.c
@@ -49,7 +49,7 @@ static char *last_pw = NULL;
int
-have_static_passphrase()
+have_static_passphrase (void)
{
return (!!fd_passwd
&& (opt.batch || opt.pinentry_mode == PINENTRY_MODE_LOOPBACK));
@@ -89,7 +89,7 @@ set_next_passphrase( const char *s )
* the caller must free the result. May return NULL:
*/
char *
-get_last_passphrase()
+get_last_passphrase (void)
{
char *p = last_pw;
last_pw = NULL;