kdb5_mkdums.c: Remove unused quit() and compiler warning cleanup
authorEzra Peisach <epeisach@mit.edu>
Fri, 28 Jul 2000 14:28:11 +0000 (14:28 +0000)
committerEzra Peisach <epeisach@mit.edu>
Fri, 28 Jul 2000 14:28:11 +0000 (14:28 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12589 dc483132-0cff-0310-8789-dd5450dbe970

src/tests/create/ChangeLog
src/tests/create/kdb5_mkdums.c

index db951dba6684ba750fe060bc40ee6707f18c565d..b6910afe6219d015b30904ca08420c47d441e3b3 100644 (file)
@@ -1,3 +1,7 @@
+2000-07-28  Ezra Peisach  <epeisach@engrailed.mit.edu>
+
+       * kdb5_mkdums.c: Remove unused quit().
+
 2000-07-02  Ezra Peisach  <epeisach@mit.edu>
 
        * kdb5_mkdums.c: Remove unused variable.
index 542fbaf81e01a54c867b781895da3dc415278db8..c20b7cc1cdc045e73b5d9d2746a789a99eeecf85 100644 (file)
@@ -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);