aboutsummaryrefslogtreecommitdiffstats
path: root/g10
diff options
context:
space:
mode:
Diffstat (limited to 'g10')
-rw-r--r--g10/cpr.c4
-rw-r--r--g10/getkey.c2
-rw-r--r--g10/keygen.c2
-rw-r--r--g10/passphrase.c4
-rw-r--r--g10/tdbio.c12
-rw-r--r--g10/trustdb.c2
6 files changed, 13 insertions, 13 deletions
diff --git a/g10/cpr.c b/g10/cpr.c
index fa8005d6f..79eff3143 100644
--- a/g10/cpr.c
+++ b/g10/cpr.c
@@ -128,7 +128,7 @@ set_status_fd (int fd)
int
-is_status_enabled ()
+is_status_enabled (void)
{
return !!statusfp;
}
@@ -532,7 +532,7 @@ do_get_from_fd ( const char *keyword, int hidden, int getbool )
int
-cpr_enabled()
+cpr_enabled(void)
{
if( opt.command_fd != -1 )
return 1;
diff --git a/g10/getkey.c b/g10/getkey.c
index 3772a8505..6363fea9f 100644
--- a/g10/getkey.c
+++ b/g10/getkey.c
@@ -260,7 +260,7 @@ user_id_not_found_utf8 (void)
cache_public_key and get_pubkey). Note: there is currently no way
to re-enable this cache. */
void
-getkey_disable_caches ()
+getkey_disable_caches (void)
{
#if MAX_PK_CACHE_ENTRIES
{
diff --git a/g10/keygen.c b/g10/keygen.c
index 4bf0995eb..7a79b378f 100644
--- a/g10/keygen.c
+++ b/g10/keygen.c
@@ -2922,7 +2922,7 @@ ask_expire_interval(int object,const char *def_expire)
}
u32
-ask_expiredate()
+ask_expiredate (void)
{
u32 x = ask_expire_interval(0,NULL);
return x? make_timestamp() + x : 0;
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;
diff --git a/g10/tdbio.c b/g10/tdbio.c
index 50dccca05..1b68f772f 100644
--- a/g10/tdbio.c
+++ b/g10/tdbio.c
@@ -415,7 +415,7 @@ put_record_into_cache (ulong recno, const char *data)
/* Return true if the cache is dirty. */
int
-tdbio_is_dirty()
+tdbio_is_dirty (void)
{
return cache_is_dirty;
}
@@ -425,7 +425,7 @@ tdbio_is_dirty()
* Flush the cache. This cannot be used while in a transaction.
*/
int
-tdbio_sync()
+tdbio_sync (void)
{
CACHE_CTRL r;
int did_lock = 0;
@@ -765,7 +765,7 @@ tdbio_set_dbname (ctrl_t ctrl, const char *new_dbname,
* Return the full name of the trustdb.
*/
const char *
-tdbio_get_dbname ()
+tdbio_get_dbname (void)
{
return db_name;
}
@@ -777,7 +777,7 @@ tdbio_get_dbname ()
* the trustdb handle (DB_FD) is guaranteed to be open.
*/
static void
-open_db ()
+open_db (void)
{
TRUSTREC rec;
@@ -859,7 +859,7 @@ create_hashtable (ctrl_t ctrl, TRUSTREC *vr, int type)
* Return: 1 for yes, 0 for no.
*/
int
-tdbio_db_matches_options()
+tdbio_db_matches_options (void)
{
static int yes_no = -1;
@@ -916,7 +916,7 @@ tdbio_read_model (void)
* problem the process is terminated.
*/
ulong
-tdbio_read_nextcheck ()
+tdbio_read_nextcheck (void)
{
TRUSTREC vr;
int rc;
diff --git a/g10/trustdb.c b/g10/trustdb.c
index e8cd62d5f..7e2486446 100644
--- a/g10/trustdb.c
+++ b/g10/trustdb.c
@@ -544,7 +544,7 @@ setup_trustdb( int level, const char *dbname )
}
void
-how_to_fix_the_trustdb ()
+how_to_fix_the_trustdb (void)
{
const char *name = trustdb_args.dbname;