Skip to content

Commit 9175149

Browse files
committed
explicitly include ctime
1 parent 8c85b21 commit 9175149

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/utilities/logging.cxx

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
#include <sys/time.h>
77
#endif
88
#include <time.h>
9+
#include <ctime>
910

1011
#include "fdp/utilities/logging.hxx"
1112

@@ -45,7 +46,7 @@ namespace FairDataPipeline {
4546
gettimeofday( &curTime, NULL );
4647
int milli = curTime.tv_usec / 1000;
4748
char buffer[ 80 ];
48-
std::time_t _tv_sec = (time_t)curTime.tv_sec;
49+
std::time_t _tv_sec = curTime.tv_sec;
4950
strftime( buffer, 80, "%Y-%m-%d %H:%M:%S", localtime( &_tv_sec ));
5051
std::string currentTime( 84, 0 );
5152

0 commit comments

Comments
 (0)