From 7e6b89a0132029d01743e0984cebb5d699b04fec Mon Sep 17 00:00:00 2001 From: John Kohl Date: Tue, 1 May 1990 17:13:21 +0000 Subject: [PATCH] add include files, error tables, etc git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@657 dc483132-0cff-0310-8789-dd5450dbe970 --- src/clients/kdestroy/kdestroy.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/clients/kdestroy/kdestroy.c b/src/clients/kdestroy/kdestroy.c index 3e9e801c2..9f69a2594 100644 --- a/src/clients/kdestroy/kdestroy.c +++ b/src/clients/kdestroy/kdestroy.c @@ -19,10 +19,16 @@ static char rcsid_klist_c [] = #include #include +#include +#include +#include + +#include extern int optind; extern char *optarg; +void main(argc, argv) int argc; char **argv; @@ -34,7 +40,11 @@ main(argc, argv) int errflg=0; initialize_krb5_error_table(); - + initialize_isod_error_table(); + + if (rindex(argv[0], '/')) + argv[0] = rindex(argv[0], '/')+1; + while ((c = getopt(argc, argv, "c:")) != EOF) { switch (c) { case 'c': -- 2.26.2