Skip to content

Commit

Permalink
[XrdCl] Explicitely cast timeval.tv_usec to long int to make MacOSX h…
Browse files Browse the repository at this point in the history
…appy
  • Loading branch information
ljanyst committed Sep 27, 2013
1 parent 19f62a0 commit 30c248d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/XrdCl/XrdClLog.cc
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ namespace XrdCl

strftime( ts, 32, "%Y-%m-%d %H:%M:%S", &tsNow );
strftime( tz, 8, "%z", &tsNow );
snprintf( now, 48, "%s.%06ld %s", ts, ttNow.tv_usec, tz );
snprintf( now, 48, "%s.%06ld %s", ts, (long int)ttNow.tv_usec, tz );

XrdOucTokenizer tok( buffer );
char *line = 0;
Expand Down

0 comments on commit 30c248d

Please sign in to comment.