#include <signal.h>
#endif
+#ifdef HAVE_STRING_H
+#include <string.h>
+#else
+#ifdef HAVE_STRINGS_H
+#include <strings.h>
+#endif
+#endif
+
#include <ubik.h>
#include <stdio.h>
token.kvno = tkt_type;
token.ticketLen = ticket_len;
if (ticket_len > MAXKTCTICKETLEN) {
- fprintf(stderr, "dlog: DCE ticket is too long (length %d). Maximum length accepted by AFS cache manager is %d\n", MAXKTCTICKETLEN);
+ fprintf(stderr, "dlog: DCE ticket is too long (length %d). Maximum length accepted by AFS cache manager is %d\n", ticket_len, MAXKTCTICKETLEN);
exit(1);
}
memcpy((char *) token.ticket, (char *) ticket_p, ticket_len);
int length;
{
char *new_p = (char *) malloc(length + 1);
- if (new_p == (char *) 0) {
+ if (new_p == NULL) {
fprintf(stderr, "dlog: out of memory\n");
exit(1);
}
initialize_KTC_error_table();
initialize_ACFG_error_table();
- ts = cmd_CreateSyntax((char *) 0, CommandProc, 0, "obtain Kerberos authentication");
+ ts = cmd_CreateSyntax(NULL, CommandProc, 0, "obtain Kerberos authentication");
#define aPRINCIPAL 0
#define aCELL 1