#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];
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) {
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);
}