]> andersk Git - moira.git/blobdiff - update/ticket.c
New version which includes enrolled, half-enrolled, and half-registered
[moira.git] / update / ticket.c
index 44ae087812f0856744d070d4b1ee004afe1445f5..6e5f6d1d50cb0bcde880153b9121e59615f26727 100644 (file)
@@ -8,18 +8,20 @@
 
 #ifndef lint
 static char *rcsid_ticket_c = "$Header$";
-#endif lint
+#endif
 
 #include <mit-copyright.h>
 #include <stdio.h>
 #include <krb.h>
 #include <sys/types.h>
 #include <sys/stat.h>
-#include <strings.h>
+#include <string.h>
 #include <update.h>
 #include <com_err.h>
 #include <krb_et.h>
 
+extern char *whoami;
+
 /* too bad we can't set the pathname easily */
 static char *srvtab = KEYFILE; /* default == /etc/srvtab */
 static char realm[REALM_SZ];
@@ -53,7 +55,7 @@ get_mr_update_ticket(host, ticket)
 
      pass = 1;
      init();
-     strcpy(phost, krb_get_phost(host));
+     strcpy(phost, (char*)krb_get_phost(host));
  try_it:
      code = krb_mk_req(ticket, service, phost, realm, (long)0);
      if (code) {
@@ -69,7 +71,7 @@ get_mr_update_ticket(host, ticket)
         com_err(whoami, code, "in krb_mk_req");
      } else {
         code = krb_get_cred(service, phost, realm, &cr);
-        bcopy(cr.session, session, sizeof(session));
+        memcpy(session, cr.session, sizeof(session));
      }
      return(code);
 }
This page took 0.032908 seconds and 4 git commands to generate.