Changeset 13 in libcf
- Timestamp:
- 01/31/13 16:31:19 (11 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
- 1 copied
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 { -
trunk/windows/libcf/libcf.vcproj
r10 r13 188 188 </File> 189 189 <File 190 RelativePath="..\..\src\cf_log.c" 191 > 192 </File> 193 <File 190 194 RelativePath="..\..\src\cf_socket.c" 191 195 > … … 214 218 </File> 215 219 <File 220 RelativePath="..\..\include\cf_log.h" 221 > 222 </File> 223 <File 216 224 RelativePath="..\..\include\cf_socket.h" 217 225 >
Note:
See TracChangeset
for help on using the changeset viewer.