Commit e4ba70ae authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(init_connection): Use current_time instead of calling time().

(new_client): Likewise.
parent 0704aede
/* /*
* $Id: internal-connections.c,v 0.35 1999/05/12 13:25:10 byers Exp $ * $Id: internal-connections.c,v 0.36 1999/05/16 21:45:59 ceder Exp $
* Copyright (C) 1991, 1992, 1993, 1994, 1996 Lysator Academic Computer Association. * Copyright (C) 1991, 1992, 1993, 1994, 1996 Lysator Academic Computer Association.
* *
* This file is part of the LysKOM server. * This file is part of the LysKOM server.
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
static const char * static const char *
rcsid = "$Id: internal-connections.c,v 0.35 1999/05/12 13:25:10 byers Exp $"; rcsid = "$Id: internal-connections.c,v 0.36 1999/05/16 21:45:59 ceder Exp $";
#include "rcs.h" #include "rcs.h"
USE(rcsid); USE(rcsid);
...@@ -60,6 +60,7 @@ USE(rcsid); ...@@ -60,6 +60,7 @@ USE(rcsid);
#include "log.h" #include "log.h"
#include "async.h" #include "async.h"
#include "kom-memory.h" #include "kom-memory.h"
#include "server-time.h"
INTERNAL Connection *all_connections = NULL; INTERNAL Connection *all_connections = NULL;
INTERNAL Session_no no_of_connection_attempts = 0; INTERNAL Session_no no_of_connection_attempts = 0;
...@@ -124,7 +125,7 @@ init_connection(Connection *conn) ...@@ -124,7 +125,7 @@ init_connection(Connection *conn)
conn->unparsed = EMPTY_STRING; conn->unparsed = EMPTY_STRING;
conn->first_to_parse = 0; conn->first_to_parse = 0;
conn->more_to_parse = FALSE; conn->more_to_parse = FALSE;
conn->active_time = time(NULL); conn->active_time = current_time;
conn->session_no = 0; conn->session_no = 0;
conn->info.pers_pres_conf = 0; conn->info.pers_pres_conf = 0;
...@@ -194,10 +195,10 @@ new_client(void) ...@@ -194,10 +195,10 @@ new_client(void)
c->unparsed = EMPTY_STRING; c->unparsed = EMPTY_STRING;
c->first_to_parse = 0; c->first_to_parse = 0;
c->more_to_parse = TRUE; c->more_to_parse = TRUE;
c->active_time = time(NULL); c->active_time = current_time;
c->pers_no = 0; c->pers_no = 0;
c->person = NULL; c->person = NULL;
time( & c->session_start ); c->session_start = current_time;
c->cwc = 0; c->cwc = 0;
c->what_am_i_doing = EMPTY_STRING; c->what_am_i_doing = EMPTY_STRING;
c->ena_level = 0; c->ena_level = 0;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment