mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2024-11-11 15:20:59 +00:00
Fixed osx mistype declaration and typo warnings
This commit is contained in:
parent
22b0ae9d51
commit
493802a605
@ -23,7 +23,7 @@
|
||||
|
||||
#include <curl/curl.h>
|
||||
|
||||
struct sse_type_t;
|
||||
class sse_type_t;
|
||||
|
||||
//----------------------------------------------
|
||||
// Functions
|
||||
|
@ -32,6 +32,12 @@
|
||||
#define S3FS_CLOCK_MONOTONIC CLOCK_MONOTONIC
|
||||
#endif
|
||||
|
||||
#if defined(__APPLE__)
|
||||
#define S3FSLOG_TIME_FMT "%s.%03dZ"
|
||||
#else
|
||||
#define S3FSLOG_TIME_FMT "%s.%03ldZ"
|
||||
#endif
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// S3fsLog class
|
||||
//-------------------------------------------------------------------
|
||||
@ -91,7 +97,7 @@ class S3fsLog
|
||||
gettimeofday(&now, NULL);
|
||||
}
|
||||
strftime(tmp, sizeof(tmp), "%Y-%m-%dT%H:%M:%S", gmtime_r(&now.tv_sec, &res));
|
||||
snprintf(current_time, sizeof(current_time), "%s.%03ldZ", tmp, (now.tv_usec / 1000));
|
||||
snprintf(current_time, sizeof(current_time), S3FSLOG_TIME_FMT, tmp, (now.tv_usec / 1000));
|
||||
return current_time;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user