put DBM stuff into include file
authorJohn Kohl <jtkohl@mit.edu>
Fri, 20 Apr 1990 11:37:13 +0000 (11:37 +0000)
committerJohn Kohl <jtkohl@mit.edu>
Fri, 20 Apr 1990 11:37:13 +0000 (11:37 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@537 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/kdb/kdb_dbm.c

index c8fe446cf4a167c425e1d2062457a0e5b7e8fbf9..0e7fc36641b52520fe3497ea6c16c25cf93a7716 100644 (file)
@@ -15,11 +15,7 @@ static char rcsid_krb_dbm_c[] =
 
 #include <krb5/copyright.h>
 
-#ifndef ODBM
-#include <ndbm.h>
-#else /*ODBM*/
-#include <dbm.h>
-#endif /*ODBM*/
+#include <krb5/dbm.h>
 
 #include <stdio.h>
 
@@ -149,18 +145,6 @@ static void free_decode_princ_dbmkey PROTOTYPE((krb5_principal ));
  * Instead, all routines call "dbm_next" instead.
  */
 
-#ifndef ODBM
-#define dbm_next(db,key) dbm_nextkey(db)
-#else /* OLD DBM */
-typedef char DBM;
-
-#define dbm_open(file, flags, mode) ((dbminit(file) == 0)?"":((char *)0))
-#define dbm_fetch(db, key) fetch(key)
-#define dbm_store(db, key, content, flag) store(key, content)
-#define dbm_firstkey(db) firstkey()
-#define dbm_next(db,key) nextkey(key)
-#define dbm_close(db) dbmclose()
-#endif /* OLD DBM */
 
 #define free_dbsuffix(name) free(name)