/*
* Copyright 2000, International Business Machines Corporation and others.
* All Rights Reserved.
- *
+ *
* This software has been released under the terms of the IBM Public
* License. For details, see the LICENSE file in the top-level source
* directory or online at http://www.openafs.org/dl/license10.html
#ifndef UKERNEL
#include "afs/stds.h"
#include "afs/afs_osi.h"
-#if defined(AFS_AIX_ENV) || defined(AFS_AUX_ENV) || defined(AFS_SUN5_ENV)
+#if defined(AFS_AIX_ENV) || defined(AFS_AUX_ENV) || defined(AFS_SUN5_ENV)
#include "h/systm.h"
#endif
-#if defined(AFS_DARWIN60_ENV) || defined(AFS_OBSD_ENV)
+#if defined(AFS_DARWIN_ENV) || defined(AFS_OBSD_ENV)
#include "h/kernel.h"
#endif
#include "h/types.h"
pthread_key_t rxkad_stats_key;
#else /* AFS_PTHREAD_ENV */
#if defined(KERNEL) && !defined(UKERNEL)
-struct rxkad_stats rxkad_stats = { { 0 } };
+struct rxkad_stats rxkad_stats = { { 0 } };
#else
/* Move delaration of this to des/key_sched.c */
#endif
memset(&rxkad_global_stats, 0, sizeof(rxkad_global_stats));
}
-rxkad_stats_t *
+rxkad_stats_t *
rxkad_thr_stats_init(void) {
rxkad_stats_t * rxkad_stats;
rxkad_stats = (rxkad_stats_t *)malloc(sizeof(rxkad_stats_t));
rxkad_SetupEndpoint(struct rx_connection *aconnp,
struct rxkad_endpoint *aendpointp)
{
- register afs_int32 i;
+ afs_int32 i;
aendpointp->cuid[0] = htonl(aconnp->epoch);
i = aconnp->cid & RX_CIDMASK;
rx_SetSecurityMaxTrailerSize(conn, 4);
} else if (level == rxkad_crypt) {
rx_SetSecurityHeaderSize(conn, 8);
- rx_SetSecurityMaxTrailerSize(conn, 8); /* XXX was 7, but why screw with
+ rx_SetSecurityMaxTrailerSize(conn, 8); /* XXX was 7, but why screw with
* unaligned accesses? */
}
}
afs_int32 * aivec)
{
afs_uint32 word[2];
- register afs_uint32 t;
+ afs_uint32 t;
t = apacket->header.callNumber;
word[0] = htonl(t);
if (rx_IsServerConn(aconn)) {
int size = sizeof(struct rxkad_sconn);
- aconn->securityData = (char *)rxi_Alloc(size);
+ aconn->securityData = rxi_Alloc(size);
memset(aconn->securityData, 0, size); /* initialize it conveniently */
} else { /* client */
struct rxkad_cprivate *tcp;
struct rxkad_cconn *tccp;
int size = sizeof(struct rxkad_cconn);
- tccp = (struct rxkad_cconn *)rxi_Alloc(size);
+ tccp = rxi_Alloc(size);
aconn->securityData = (char *)tccp;
memset(aconn->securityData, 0, size); /* initialize it conveniently */
tcp = (struct rxkad_cprivate *)aobj->privateData;
return RXKADSEALEDINCON;
nlen = word & 0xffff; /* get real user data length */
- /* The sealed length should be no larger than the initial length, since the
+ /* The sealed length should be no larger than the initial length, since the
* reverse (round-up) occurs in ...PreparePacket */
if (nlen > len)
return RXKADDATALEN;