From c976d091184ed4a5b56dbbd82147a8e71e9b1aec Mon Sep 17 00:00:00 2001 From: John Kohl Date: Wed, 23 May 1990 15:18:47 +0000 Subject: [PATCH] fix include files git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@926 dc483132-0cff-0310-8789-dd5450dbe970 --- src/admin/create/kdb5_create.c | 9 +++------ src/admin/destroy/kdb5_destroy.c | 10 ++-------- src/admin/edit/kdb5_edit.c | 11 +++-------- src/admin/stash/kdb5_stash.c | 13 ++++--------- src/appl/sample/sclient/sclient.c | 5 ++--- src/appl/sample/sserver/sserver.c | 4 ---- src/clients/kdestroy/kdestroy.c | 7 ++----- src/clients/klist/klist.c | 5 +---- 8 files changed, 17 insertions(+), 47 deletions(-) diff --git a/src/admin/create/kdb5_create.c b/src/admin/create/kdb5_create.c index 28e123ff9..f0a2c5ebd 100644 --- a/src/admin/create/kdb5_create.c +++ b/src/admin/create/kdb5_create.c @@ -5,7 +5,7 @@ * Copyright 1990 by the Massachusetts Institute of Technology. * * For copying and distribution information, please see the file - * . + * . * * Generate (from scratch) a Kerberos KDC database. */ @@ -19,16 +19,13 @@ static char rcsid_kdb_create_c[] = #include #include #include -#include -#include -#include -#include #include #include #include #include -#include +#include + #include diff --git a/src/admin/destroy/kdb5_destroy.c b/src/admin/destroy/kdb5_destroy.c index d88263dc3..9ce08c93a 100644 --- a/src/admin/destroy/kdb5_destroy.c +++ b/src/admin/destroy/kdb5_destroy.c @@ -5,7 +5,7 @@ * Copyright 1990 by the Massachusetts Institute of Technology. * * For copying and distribution information, please see the file - * . + * . * * kdb_dest(roy): destroy the named database. * @@ -24,14 +24,8 @@ static char rcsid_kdb_dest_c[] = #include #include -#include -#include -#include - #include -#include /* for unlink() */ - -#include /* XXX for MAXPATHLEN */ +#include /* for MAXPATHLEN */ extern int errno; diff --git a/src/admin/edit/kdb5_edit.c b/src/admin/edit/kdb5_edit.c index 2d9da4987..071b9db4b 100644 --- a/src/admin/edit/kdb5_edit.c +++ b/src/admin/edit/kdb5_edit.c @@ -19,20 +19,16 @@ static char rcsid_kdb_edit_c[] = #include #include #include -#include -#include -#include -#include #include #include #include -#include /* XXX for MAXPATHLEN */ +#include /* for MAXPATHLEN */ +#include #include #include -#include +#include -#include #define REALM_SEP '@' #define REALM_SEP_STR "@" @@ -619,7 +615,6 @@ int argc; char *argv[]; { krb5_error_code retval; - krb5_keyblock *tempkey; krb5_principal newprinc; char yesno[80]; int one = 1; diff --git a/src/admin/stash/kdb5_stash.c b/src/admin/stash/kdb5_stash.c index d9394aedf..34dfb4aae 100644 --- a/src/admin/stash/kdb5_stash.c +++ b/src/admin/stash/kdb5_stash.c @@ -5,7 +5,7 @@ * Copyright 1990 by the Massachusetts Institute of Technology. * * For copying and distribution information, please see the file - * . + * . * * Store the master database key in a file. */ @@ -19,17 +19,12 @@ static char rcsid_kdb_stash_c[] = #include #include #include -#include -#include -#include - -#include - -#include #include #include +#include -#include /* for unlink() */ +#include +#include extern int errno; diff --git a/src/appl/sample/sclient/sclient.c b/src/appl/sample/sclient/sclient.c index c9a04b53f..a11eaf385 100644 --- a/src/appl/sample/sclient/sclient.c +++ b/src/appl/sample/sclient/sclient.c @@ -19,14 +19,13 @@ static char rcsid_sclient_c [] = #include #include -#include #include -#include -#include #include +#include #include #include + #include #include #include diff --git a/src/appl/sample/sserver/sserver.c b/src/appl/sample/sserver/sserver.c index 4600036a6..339b2795f 100644 --- a/src/appl/sample/sserver/sserver.c +++ b/src/appl/sample/sserver/sserver.c @@ -27,13 +27,9 @@ static char rcsid_sserver_c [] = #include #include -#include #include -#include #include -#include - #include #include #include diff --git a/src/clients/kdestroy/kdestroy.c b/src/clients/kdestroy/kdestroy.c index 9f69a2594..e57f0db08 100644 --- a/src/clients/kdestroy/kdestroy.c +++ b/src/clients/kdestroy/kdestroy.c @@ -5,7 +5,7 @@ * Copyright 1990 by the Massachusetts Institute of Technology. * * For copying and distribution information, please see the file - * . + * . * * Destroy the contents of your credential cache. */ @@ -19,8 +19,6 @@ static char rcsid_klist_c [] = #include #include -#include -#include #include #include @@ -39,8 +37,7 @@ main(argc, argv) int code; int errflg=0; - initialize_krb5_error_table(); - initialize_isod_error_table(); + krb5_init_ets(); if (rindex(argv[0], '/')) argv[0] = rindex(argv[0], '/')+1; diff --git a/src/clients/klist/klist.c b/src/clients/klist/klist.c index 6b3ab3a0e..a752c61fe 100644 --- a/src/clients/klist/klist.c +++ b/src/clients/klist/klist.c @@ -5,7 +5,7 @@ * Copyright 1990 by the Massachusetts Institute of Technology. * * For copying and distribution information, please see the file - * . + * . * * List out the contents of your credential cache. */ @@ -19,11 +19,8 @@ static char rcsid_klist_c [] = #include #include -#include -#include #include #include -#include extern int optind; extern char *optarg; -- 2.26.2