summaryrefslogtreecommitdiffstats
path: root/src/clients/kdestroy
diff options
context:
space:
mode:
authorJohn Kohl <jtkohl@mit.edu>1990-05-01 17:13:21 +0000
committerJohn Kohl <jtkohl@mit.edu>1990-05-01 17:13:21 +0000
commit7e6b89a0132029d01743e0984cebb5d699b04fec (patch)
treea5fc6db9819ccf4a58bca393ad73fbbe47af0345 /src/clients/kdestroy
parentec3674c19a8318117b3587b813f6a10dfdc0a10b (diff)
downloadkrb5-7e6b89a0132029d01743e0984cebb5d699b04fec.tar.gz
krb5-7e6b89a0132029d01743e0984cebb5d699b04fec.tar.xz
krb5-7e6b89a0132029d01743e0984cebb5d699b04fec.zip
add include files, error tables, etc
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@657 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/clients/kdestroy')
-rw-r--r--src/clients/kdestroy/kdestroy.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/clients/kdestroy/kdestroy.c b/src/clients/kdestroy/kdestroy.c
index 3e9e801c2b..9f69a2594f 100644
--- a/src/clients/kdestroy/kdestroy.c
+++ b/src/clients/kdestroy/kdestroy.c
@@ -19,10 +19,16 @@ static char rcsid_klist_c [] =
#include <krb5/copyright.h>
#include <krb5/krb5.h>
+#include <krb5/krb5_err.h>
+#include <krb5/isode_err.h>
+#include <krb5/ext-proto.h>
+
+#include <com_err.h>
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':