Replace datime() with just time().
Also make the 'savetime' value meaningful. This removes a separate library dependency on some systems.
This commit is contained in:
parent
fb8ba08986
commit
d23111daba
4 changed files with 2 additions and 19 deletions
8
misc.c
8
misc.c
|
@ -680,14 +680,6 @@ void make_zzword(char zzword[6])
|
|||
zzword[5] = '\0';
|
||||
}
|
||||
|
||||
void datime(long* d, long* t)
|
||||
{
|
||||
struct timeval tv;
|
||||
gettimeofday(&tv, NULL);
|
||||
*d = (long) tv.tv_sec;
|
||||
*t = (long) tv.tv_usec;
|
||||
}
|
||||
|
||||
// LCOV_EXCL_START
|
||||
void bug(enum bugtype num, const char *error_string)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue