mirror of
https://git.openafs.org/openafs.git
synced 2025-01-31 05:27:44 +00:00
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:
parent
192ba0deae
commit
0251eb6b37
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user