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

(current_time): Now a struct timeval, not a time_t.

(main): Adjusted for the new type of current_time.
parent b2c50df5
/*
* $Id: ramkomd.c,v 0.112 2003/07/12 00:18:46 ceder Exp $
* $Id: ramkomd.c,v 0.113 2003/07/12 21:29:41 ceder Exp $
* Copyright (C) 1991-1999, 2001-2002 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -127,7 +127,7 @@
typedef int rlim_t;
#endif
time_t current_time = 0;
struct timeval current_time = { 0, 0 };
#ifndef NDEBUG
......@@ -526,7 +526,8 @@ main (int argc,
link_ansi();
current_time = time(NULL);
if (gettimeofday(&current_time, NULL) < 0)
restart_kom("gettimeofday failed: %s\n", strerror(errno));
#ifdef TRACED_ALLOCATIONS
/* We must do this before we allocate any memory... */
......
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