Don't cast dbm_close() to void, because dbm_close is already void
authorTheodore Tso <tytso@mit.edu>
Fri, 24 Mar 1995 22:46:19 +0000 (22:46 +0000)
committerTheodore Tso <tytso@mit.edu>
Fri, 24 Mar 1995 22:46:19 +0000 (22:46 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5238 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/kdb/ChangeLog
src/lib/kdb/kdb_dbm.c

index acf27e6384c4cecfdcb3ec41a9aaf655468ed37b..fe5739121dbbe50640cdac8e589c1dadc367507e 100644 (file)
@@ -1,3 +1,8 @@
+Fri Mar 24 15:13:53 1995    <tytso@rsx-11.mit.edu>
+
+       * 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,
index 69d202655ea8d2a8e7bf13df707978c6bbfa7faf..80d62cff2055b1ec1a92dc53b1b08d5d58781d99 100644 (file)
@@ -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;
 }