From: Theodore Tso Date: Fri, 23 Aug 1996 20:23:07 +0000 (+0000) Subject: Remove references to dead BERK_DB_DBM code X-Git-Tag: krb5-1.0-beta7~106 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=546851401fe8483516f012a07336ff8286fb51f2;p=krb5.git Remove references to dead BERK_DB_DBM code git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8976 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/os/ChangeLog b/src/lib/krb5/os/ChangeLog index 5d0ab54b9..aaaa675c7 100644 --- a/src/lib/krb5/os/ChangeLog +++ b/src/lib/krb5/os/ChangeLog @@ -1,3 +1,8 @@ +Thu Aug 22 15:19:47 1996 Theodore Ts'o + + * an_to_ln.c (db_an_to_ln): Remove references to dead BERK_DB_DBM + code. + Tue Jul 30 19:15:55 1996 Sam Hartman * Makefile.in (check-unix): Comment out an_2_ln tests that use diff --git a/src/lib/krb5/os/an_to_ln.c b/src/lib/krb5/os/an_to_ln.c index e69be0b48..9831caf64 100644 --- a/src/lib/krb5/os/an_to_ln.c +++ b/src/lib/krb5/os/an_to_ln.c @@ -42,24 +42,12 @@ #define min(a,b) ((a>b) ? b : a) #endif /* min */ #ifdef ANAME_DB -#ifdef BERK_DB_DBM -/* - * Use Berkeley Hashed Database code. - */ -extern DBM *db_dbm_open KRB5_PROTOTYPE((char *, int, int)); -extern void db_dbm_close KRB5_PROTOTYPE((DBM *)); -extern datum db_dbm_fetch KRB5_PROTOTYPE((DBM *, datum)); -#define KDBM_OPEN(db, fl, mo) db_dbm_open(db, fl, mo) -#define KDBM_CLOSE(db) db_dbm_close(db) -#define KDBM_FETCH(db, key) db_dbm_fetch(db, key) -#else /* BERK_DB_DBM */ /* * Use standard DBM code. */ #define KDBM_OPEN(db, fl, mo) dbm_open(db, fl, mo) #define KDBM_CLOSE(db) dbm_close(db) #define KDBM_FETCH(db, key) dbm_fetch(db, key) -#endif /* BERK_DB_DBM */ #endif /*ANAME_DB*/ /* @@ -104,7 +92,7 @@ db_an_to_ln(context, dbname, aname, lnsize, lname) const int lnsize; char *lname; { -#if defined(BERK_DB_DBM) || (!defined(_MSDOS) && !defined(_WIN32) && !defined(_MACINTOSH)) +#if (!defined(_MSDOS) && !defined(_WIN32) && !defined(_MACINTOSH)) DBM *db; krb5_error_code retval; datum key, contents; @@ -140,13 +128,13 @@ db_an_to_ln(context, dbname, aname, lnsize, lname) /* can't close until we copy the contents. */ (void) KDBM_CLOSE(db); return retval; -#else /* BERK_DB_DBM && !_MSDOS && !_WIN32 && !MACINTOSH */ +#else /* !_MSDOS && !_WIN32 && !MACINTOSH */ /* * If we don't have support for a database mechanism, then we can't * translate this now, can we? */ return KRB5_LNAME_NOTRANS; -#endif /* BERK_DB_DBM && !_MSDOS && !_WIN32 && !MACINTOSH */ +#endif /* !_MSDOS && !_WIN32 && !MACINTOSH */ } #endif /*ANAME_DB*/