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

(init_connection): Use struct timeval instead of time_t.

parent 81dac4db
/*
* $Id: internal-connections.c,v 0.54 2003/07/12 00:17:55 ceder Exp $
* $Id: internal-connections.c,v 0.55 2003/07/12 21:29:28 ceder Exp $
* Copyright (C) 1991-1994, 1996-2002 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -53,6 +53,7 @@
#include "async.h"
#include "kom-memory.h"
#include "server-time.h"
#include "timeval-util.h"
/* We don't need the defensive checks in this file. They have been
tested enough the last few years. They also consume a lot of CPU. */
......@@ -77,7 +78,7 @@ init_connection(Connection *conn)
conn->next = NULL;
conn->pers_no = 0;
conn->person = NULL;
conn->session_start = NO_TIME;
conn->session_start = timeval_ctor(0, 0);
conn->cwc = 0;
conn->what_am_i_doing = EMPTY_STRING;
conn->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