From f1cb292c1c8773fa97d1aeaac99459f046f9d2e5 Mon Sep 17 00:00:00 2001 From: Mark Eichin Date: Fri, 21 Jul 1995 04:06:09 +0000 Subject: [PATCH] * kdb_dbm.c (krb5_dbm_db_create): move dirname, pagname declarations to the top of function, so it compiles... git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6320 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/kdb/ChangeLog | 4 ++++ src/lib/kdb/kdb_dbm.c | 7 ++++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/lib/kdb/ChangeLog b/src/lib/kdb/ChangeLog index 2788a436e..289c2d94f 100644 --- a/src/lib/kdb/ChangeLog +++ b/src/lib/kdb/ChangeLog @@ -1,3 +1,7 @@ +Thu Jul 20 23:59:18 1995 Mark Eichin + + * kdb_dbm.c (krb5_dbm_db_create): move dirname, pagname + declarations to the top of function, so it compiles... Mon Jul 17 15:17:53 EDT 1995 Paul Park (pjpark@mit.edu) * fetch_mkey.c - Remove inclusion of kdbint.h and add handling of diff --git a/src/lib/kdb/kdb_dbm.c b/src/lib/kdb/kdb_dbm.c index 039408975..4357c54cc 100644 --- a/src/lib/kdb/kdb_dbm.c +++ b/src/lib/kdb/kdb_dbm.c @@ -1158,8 +1158,12 @@ krb5_dbm_db_create(context, db_name) register krb5_error_code retval = 0; #ifndef ODBM DBM *db; +#else + char *dirname; + char *pagname; #endif + if ((retval = k5dbm_init_context(context))) return(retval); @@ -1170,9 +1174,6 @@ krb5_dbm_db_create(context, db_name) else KDBM_CLOSE(context->db_context, db); #else /* OLD DBM */ - char *dirname; - char *pagname; - dirname = gen_dbsuffix(db_name, ".dir"); if (!dirname) return ENOMEM; -- 2.26.2