util: Don't use FT_GetTimeOfDay for MRAFS logs

FT_GetTimeOfDay creates an LWP dependency. For the purpose that we're
using it in serverLog.c, gettimeofday performs identically. So, just
use gettimeofday and reduce our dependencies.

Change-Id: I36887d725c7e93386c80c61b3b33a7cda2bfe738
Reviewed-on: http://gerrit.openafs.org/5085
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Tested-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
This commit is contained in:
Simon Wilkinson 2011-07-10 13:56:21 +01:00 committed by Derrick Brashear
parent 192ba0deae
commit 0251eb6b37

View File

@ -293,7 +293,7 @@ OpenLog(const char *fileName)
if (mrafsStyleLogs) {
time_t t;
struct stat buf;
FT_GetTimeOfDay(&Start, 0);
gettimeofday(&Start, NULL);
t = Start.tv_sec;
TimeFields = localtime(&t);
if (fileName) {