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:
Jason S. Ninneman 2017-07-02 09:42:07 -07:00
parent fb8ba08986
commit d23111daba
4 changed files with 2 additions and 19 deletions

8
misc.c
View file

@ -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)
{