From: Ezra Peisach Date: Fri, 28 Jul 2000 14:22:24 +0000 (+0000) Subject: * kdb5_verify.c (check_princ): Compiler warning cleanup. Get rid X-Git-Tag: krb5-1.3-alpha1~1953 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=abb4f1d60fab8bdb043ca26bc1c59d4aa9aea0b1;p=krb5.git * kdb5_verify.c (check_princ): Compiler warning cleanup. Get rid of unused function. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12587 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/tests/verify/ChangeLog b/src/tests/verify/ChangeLog index 21ff264be..016ff1286 100644 --- a/src/tests/verify/ChangeLog +++ b/src/tests/verify/ChangeLog @@ -1,3 +1,8 @@ +2000-07-28 Ezra Peisach + + * kdb5_verify.c (check_princ): Compiler warning cleanup. Get rid + of unused function. + 2000-07-02 Ezra Peisach * kdb5_verify.c: Remove unused variable. diff --git a/src/tests/verify/kdb5_verify.c b/src/tests/verify/kdb5_verify.c index be046e340..291accb3a 100644 --- a/src/tests/verify/kdb5_verify.c +++ b/src/tests/verify/kdb5_verify.c @@ -77,18 +77,6 @@ static char *mkey_name = 0; static char *mkey_password = 0; static krb5_boolean manual_mkey = FALSE; -void -quit(context) - krb5_context context; -{ - krb5_error_code retval = krb5_db_fini(context); - memset((char *)master_keyblock.contents, 0, master_keyblock.length); - if (retval) { - com_err(progname, retval, "while closing database"); - exit(1); - } - exit(0); -} int check_princ PROTOTYPE((krb5_context, char *)); @@ -216,7 +204,7 @@ char *argv[]; krb5_finish_key(context, &master_encblock); retval = krb5_db_fini(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); @@ -290,7 +278,8 @@ errout: return(-1); } else { - if (memcmp((char *)pwd_key.contents, (char *) db_key.contents, pwd_key.length)) { + if (memcmp((char *)pwd_key.contents, (char *) db_key.contents, + (size_t) pwd_key.length)) { fprintf(stderr, "\t key did not match stored value for %s\n", princ_name); goto errout;