Changeset 13 in libcf for trunk/src/cf_log.c
- Timestamp:
- 01/31/13 16:31:19 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/cf_log.c
r12 r13 14 14 15 15 #ifdef _WIN32 16 # include <Windows.h> 16 17 #else // #ifdef _WIN32 17 # include <sys/stat.h>18 18 # include <sys/time.h> 19 19 #endif // #ifdef _WIN32 … … 56 56 57 57 typedef struct __cf_log_environment__ { 58 __blksize_t fsBlockSize;59 58 CF_Log_Ctx * ctxPool; 60 59 int ctxSize; … … 125 124 126 125 gettimeofday (&timeVal, NULL); 127 timeSt = localtime ( &timeVal.tv_sec);126 timeSt = localtime ((const time_t *)&timeVal.tv_sec); 128 127 129 128 dt->year = timeSt->tm_year + 1900; … … 181 180 CF_Log_Initialize (const int logPool) 182 181 { 183 struct stat fsstat;184 185 182 memset (&gLogEnvironment, 0x00, sizeof (CF_LOG_ENVIRONMENT)); 186 183 187 if (stat (".", &fsstat) < 0)188 return CF_ERROR_LOG_INITIALIZE;189 190 gLogEnvironment.fsBlockSize = fsstat.st_blksize;191 184 if (logPool > 0) 192 185 {
Note:
See TracChangeset
for help on using the changeset viewer.