Fix cast of dbm_open return value
authorJohn Carr <jfc@mit.edu>
Wed, 25 Mar 1992 14:59:57 +0000 (14:59 +0000)
committerJohn Carr <jfc@mit.edu>
Wed, 25 Mar 1992 14:59:57 +0000 (14:59 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2265 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/kdb/kdb_dbm.c

index 53d4d144b2f457ad60607c91e28723dbef9b1c9a..b0ba07c2dc944d044512b1fde82f444967dba222 100644 (file)
@@ -243,7 +243,7 @@ krb5_dbm_db_open_database()
   if (!inited)
     return KRB5_KDB_DBNOTINITED;
 
-  if (!(current_db_ptr = (krb5_pointer)dbm_open(current_db_name, O_RDWR, 0600)))
+  if (!(current_db_ptr = (DBM *)dbm_open(current_db_name, O_RDWR, 0600)))
     return errno;
 
   /* It is safe to ignore errors here because all function which write