add include files, error tables, etc
authorJohn Kohl <jtkohl@mit.edu>
Tue, 1 May 1990 17:13:21 +0000 (17:13 +0000)
committerJohn Kohl <jtkohl@mit.edu>
Tue, 1 May 1990 17:13:21 +0000 (17:13 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@657 dc483132-0cff-0310-8789-dd5450dbe970

src/clients/kdestroy/kdestroy.c

index 3e9e801c2b1ce72692ae0d0ea5426c0a38f12713..9f69a2594f44e9575405d1c200a328a59b2e13a5 100644 (file)
@@ -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':