* t_kdb.c: wrap db_dbm decls and berkely_dispatch in ifdefs
authorMark Eichin <eichin@mit.edu>
Sat, 27 Jan 1996 06:03:26 +0000 (06:03 +0000)
committerMark Eichin <eichin@mit.edu>
Sat, 27 Jan 1996 06:03:26 +0000 (06:03 +0000)
BERK_DB_DBM.
(do_testing): wrap references as well.

* keytab.c (krb5_ktkdb_get_entry): use KRB5_PROTOTYPE.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7400 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/kdb/ChangeLog
src/lib/kdb/keytab.c
src/lib/kdb/t_kdb.c

index 620fbbdafec402d59e6ea27dc90818c4835bd523..34e37e0630d5f41c786fa60c5edb25eb25842ac9 100644 (file)
@@ -1,3 +1,11 @@
+Sat Jan 27 01:01:17 1996  Mark Eichin  <eichin@cygnus.com>
+
+       * t_kdb.c: wrap db_dbm decls and berkely_dispatch in ifdefs
+       BERK_DB_DBM.
+       (do_testing): wrap references as well.
+
+       * keytab.c (krb5_ktkdb_get_entry): use KRB5_PROTOTYPE.
+
 Wed Dec 13 09:28:33 1995  Ezra Peisach  <epeisach@kangaroo.mit.edu>
 
        * keytab.c (krb5_ktkdb_resolve): Fix casting
index 62000e14be12f1c8bf6e86b28ab2a8365bd5aac4..85bdf9cda420fe167026003d4cf0b9c1548f27f8 100644 (file)
@@ -25,8 +25,8 @@
 #include "k5-int.h"
 #include "kdb_dbc.h"
 
-krb5_error_code krb5_ktkdb_get_entry(krb5_context, krb5_keytab, krb5_principal,
-                  krb5_kvno, krb5_enctype, krb5_keytab_entry *);
+krb5_error_code krb5_ktkdb_get_entry KRB5_PROTOTYPE((krb5_context, krb5_keytab, krb5_principal,
+                       krb5_kvno, krb5_enctype, krb5_keytab_entry *));
 
 krb5_kt_ops krb5_kt_kdb_ops = {
     0,
index 0b1413b3e803dd23288134ec269f7399c2cc5cea..f6ede021b69e59f24ea2b16c73be44adc7bc5da8 100644 (file)
@@ -77,6 +77,7 @@ struct timezone       dontcare;
 krb5_principal *recorded_principals = (krb5_principal *) NULL;
 char           **recorded_names = (char **) NULL;
 
+#ifdef BERK_DB_DBM
 extern DBM     *db_dbm_open PROTOTYPE((char *, int, int));
 extern void     db_dbm_close PROTOTYPE((DBM *));
 extern datum    db_dbm_fetch PROTOTYPE((DBM *, datum));
@@ -105,6 +106,7 @@ static kdb5_dispatch_table berkeley_dispatch = {
     db_dbm_dirfno,             /* Get Database FD num  */
     (int (*)()) NULL           /* Get Database FD num  */
 };
+#endif
 
 /*
  * The following prototypes are necessary in case dbm_error and
@@ -483,11 +485,13 @@ do_testing(db, passes, verbose, timing, rcases, check, save_db, dontclean,
     krb5_init_ets(kcontext);
 
     switch (db_type) {
+#ifdef BERK_DB_DBM
     case DB_BERKELEY:
        op = "setting up Berkeley database operations";
        if (kret = kdb5_db_set_dbops(kcontext, &berkeley_dispatch))
            goto goodbye;
        break;
+#endif
     case DB_DBM:
        op = "setting up DBM database operations";
        if (kret = kdb5_db_set_dbops(kcontext, &dbm_dispatch))
@@ -901,10 +905,12 @@ do_testing(db, passes, verbose, timing, rcases, check, save_db, dontclean,
                krb5_init_context(&ccontext);
                krb5_init_ets(ccontext);
                switch (db_type) {
+#ifdef BERK_DB_DBM
                case DB_BERKELEY:
                    if (kret = kdb5_db_set_dbops(ccontext, &berkeley_dispatch))
                        exit(1);
                    break;
+#endif
                case DB_DBM:
                    if (kret = kdb5_db_set_dbops(ccontext, &dbm_dispatch))
                        exit(1);
@@ -997,11 +1003,13 @@ do_testing(db, passes, verbose, timing, rcases, check, save_db, dontclean,
     if (db_created) {
        if (!kret && !save_db) {
            switch (db_type) {
+#ifdef BERK_DB_DBM
            case DB_BERKELEY:
                op = "setting up Berkeley database operations";
                if (kret = kdb5_db_set_dbops(kcontext, &berkeley_dispatch))
                    goto goodbye1;
                break;
+#endif
            case DB_DBM:
                op = "setting up DBM database operations";
                if (kret = kdb5_db_set_dbops(kcontext, &dbm_dispatch))