From: Ezra Peisach Date: Fri, 28 Jul 2000 14:28:11 +0000 (+0000) Subject: kdb5_mkdums.c: Remove unused quit() and compiler warning cleanup X-Git-Tag: krb5-1.3-alpha1~1951 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a537c97b83c67daf1689441ffcee557b852588b2;p=krb5.git kdb5_mkdums.c: Remove unused quit() and compiler warning cleanup git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12589 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/tests/create/ChangeLog b/src/tests/create/ChangeLog index db951dba6..b6910afe6 100644 --- a/src/tests/create/ChangeLog +++ b/src/tests/create/ChangeLog @@ -1,3 +1,7 @@ +2000-07-28 Ezra Peisach + + * kdb5_mkdums.c: Remove unused quit(). + 2000-07-02 Ezra Peisach * kdb5_mkdums.c: Remove unused variable. diff --git a/src/tests/create/kdb5_mkdums.c b/src/tests/create/kdb5_mkdums.c index 542fbaf81..c20b7cc1c 100644 --- a/src/tests/create/kdb5_mkdums.c +++ b/src/tests/create/kdb5_mkdums.c @@ -77,18 +77,6 @@ static char *mkey_name = 0; static char *mkey_password = 0; static krb5_boolean manual_mkey = FALSE; -void -quit() -{ - krb5_error_code retval = krb5_db_fini(test_context); - memset((char *)master_keyblock.contents, 0, master_keyblock.length); - if (retval) { - com_err(progname, retval, "while closing database"); - exit(1); - } - exit(0); -} - void add_princ PROTOTYPE((krb5_context, char *)); int @@ -209,7 +197,8 @@ char *argv[]; } retval = krb5_db_fini(test_context); - memset((char *)master_keyblock.contents, 0, master_keyblock.length); + memset((char *)master_keyblock.contents, 0, + (size_t) master_keyblock.length); if (retval && retval != KRB5_KDB_DBNOTINITED) { com_err(progname, retval, "while closing database"); exit(1);