]> andersk Git - moira.git/commitdiff
make it work with new com_err library
authormar <mar>
Mon, 26 Jun 1989 09:09:25 +0000 (09:09 +0000)
committermar <mar>
Mon, 26 Jun 1989 09:09:25 +0000 (09:09 +0000)
update/ticket.c

index 4d4c90f85cceff0647aae37a8149bc6bbcaae9d6..52bab6caca05985a15a545bec284d15fb47d9d95 100644 (file)
@@ -18,6 +18,7 @@ static char *rcsid_ticket_c = "$Header$";
 #include <strings.h>
 #include <update.h>
 #include <com_err.h>
+#include <krb_et.h>
 
 /* too bad we can't set the pathname easily */
 static char *srvtab = KEYFILE; /* default == /etc/srvtab */
@@ -26,7 +27,7 @@ static char master[] = "sms";
 static char service[] = "rcmd";
 
 extern char *tkt_string(), *PrincipalHostname();
-extern int krb_err_base;
+
 
 static init()
 {
@@ -34,7 +35,7 @@ static init()
 
     if (!initialized) {
        get_krbrlm(realm, 1);
-       init_krb_err_tbl();
+       initialize_krb_error_table();
        initialized=1;
     }
 }
@@ -55,7 +56,7 @@ get_sms_update_ticket(host, ticket)
  try_it:
      code = krb_mk_req(ticket, service, phost, realm, (long)0);
      if (code)
-       code += krb_err_base;
+       code += ERROR_TABLE_BASE_krb;
      if (pass == 1) {
         /* maybe we're taking too long? */
         if ((code = get_sms_tgt()) != 0) {
@@ -78,5 +79,5 @@ get_sms_tgt()
     if (!code)
        return(0);
     else
-       return(code + krb_err_base);
+       return(code + ERROR_TABLE_BASE_krb);
 }
This page took 0.040146 seconds and 5 git commands to generate.