From cce4fb8b4c08b4d3efe4ee8301514cf680b71c33 Mon Sep 17 00:00:00 2001 From: Theodore Tso Date: Fri, 24 Mar 1995 22:46:19 +0000 Subject: [PATCH] Don't cast dbm_close() to void, because dbm_close is already void git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5238 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/kdb/ChangeLog | 5 +++++ src/lib/kdb/kdb_dbm.c | 10 +++++----- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/src/lib/kdb/ChangeLog b/src/lib/kdb/ChangeLog index acf27e638..fe5739121 100644 --- a/src/lib/kdb/ChangeLog +++ b/src/lib/kdb/ChangeLog @@ -1,3 +1,8 @@ +Fri Mar 24 15:13:53 1995 + + * kdb_dbm.c: Don't cast dbm_close() to void, because dbm_close is + already void. + Tue Feb 28 00:30:10 1995 John Gilmore (gnu at toad.com) * decrypt_key.c, encrypt_key.c, fetch_mkey.c, kdb_dbm.c, diff --git a/src/lib/kdb/kdb_dbm.c b/src/lib/kdb/kdb_dbm.c index 69d202655..80d62cff2 100644 --- a/src/lib/kdb/kdb_dbm.c +++ b/src/lib/kdb/kdb_dbm.c @@ -1171,7 +1171,7 @@ krb5_boolean *more; /* are there more? */ else found = 1; if (current_db_ptr == 0) - (void) dbm_close(db); + dbm_close(db); (void) krb5_dbm_db_unlock(context); /* unlock read lock */ if (krb5_dbm_db_end_read(context, transaction) == 0) break; @@ -1188,7 +1188,7 @@ krb5_boolean *more; /* are there more? */ cleanup: if (current_db_ptr == 0) - (void) dbm_close(db); + dbm_close(db); (void) krb5_dbm_db_unlock(context); /* unlock read lock */ return retval; } @@ -1274,7 +1274,7 @@ krb5_dbm_db_put_principal(context, entries, nentries) } if (current_db_ptr == 0) - (void) dbm_close(db); + dbm_close(db); (void) krb5_dbm_db_unlock(context); /* unlock database */ *nentries = i; return (retval); @@ -1346,7 +1346,7 @@ int *nentries; /* how many found & deleted */ cleanup: if (current_db_ptr == 0) - (void) dbm_close(db); + dbm_close(db); (void) krb5_dbm_db_unlock(context); /* unlock write lock */ *nentries = found; return retval; @@ -1390,7 +1390,7 @@ krb5_dbm_db_iterate (context, func, func_arg) break; } if (current_db_ptr == 0) - (void) dbm_close(db); + dbm_close(db); (void) krb5_dbm_db_unlock(context); return retval; } -- 2.26.2