for (aclp = scp->randomACLp; aclp; aclp = aclp->nextp) {
if (aclp->userp == userp) {
- if (aclp->tgtLifetime && aclp->tgtLifetime <= osi_Time()) {
+ if (aclp->tgtLifetime && aclp->tgtLifetime <= time(NULL)) {
/* ticket expired */
osi_QRemoveHT((osi_queue_t **) &cm_data.aclLRUp, (osi_queue_t **) &cm_data.aclLRUEndp, &aclp->q);
CleanupACLEnt(aclp);
struct cm_scache *backp; /* back ptr to vnode */
struct cm_user *userp; /* user whose access is cached */
afs_uint32 randomAccess; /* watch for more rights in acl.h */
- unsigned long tgtLifetime; /* time this expires */
+ afs_uint32 tgtLifetime; /* time this expires */
} cm_aclent_t;
extern osi_rwlock_t cm_aclLock;
char *p = NULL;
if (UuidToString((UUID *)serverUuid, &p) == RPC_S_OK) {
- osi_Log1(afsd_logp, "SRXAFSCB_InitCallBackState3 %s ->",p);
+ osi_Log1(afsd_logp, "SRXAFSCB_InitCallBackState3 %s ->",osi_LogSaveString(afsd_logp,p));
RpcStringFree(&p);
} else
osi_Log0(afsd_logp, "SRXAFSCB_InitCallBackState3 - no server Uuid ->");
lock_ObtainMutex(&tsp->mx);
if (!(tsp->flags & CM_SERVERFLAG_DOWN)) {
tsp->flags |= CM_SERVERFLAG_DOWN;
- tsp->downTime = osi_Time();
+ tsp->downTime = time(NULL);
}
cm_ForceNewConnections(tsp);
if (reqp->flags & CM_REQ_NEW_CONN_FORCED) {
if (!(serverp->flags & CM_SERVERFLAG_DOWN)) {
serverp->flags |= CM_SERVERFLAG_DOWN;
- serverp->downTime = osi_Time();
+ serverp->downTime = time(NULL);
}
} else {
reqp->flags |= CM_REQ_NEW_CONN_FORCED;
/* mark server as down */
if (!(tsp->flags & CM_SERVERFLAG_DOWN)) {
tsp->flags |= CM_SERVERFLAG_DOWN;
- tsp->downTime = osi_Time();
+ tsp->downTime = time(NULL);
}
if (code != VRESTARTING)
cm_ForceNewConnections(tsp);