Changeset 38 in libcf for trunk/src/cf_log.c
- Timestamp:
- 02/06/13 10:26:54 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/cf_log.c
r35 r38 84 84 // Initialize the present time to 0 and the timezone to UTC 85 85 unsigned __int64 ui64 =0; 86 static int tzflag = 0;86 //static int tzflag = 0; 87 87 88 88 if (NULL != tv) … … 105 105 } 106 106 107 /* 107 108 if (NULL != tz) 108 109 { … … 117 118 tz->tz_dsttime = _daylight; 118 119 } 120 */ 119 121 120 122 return 0; … … 166 168 return CF_ERROR_LOG_FLUSH; 167 169 168 memset (ctx->buffer, 0x00, ctx->size);169 170 ctx->length = 0; 170 171 … … 209 210 else /* flush되어야 함. */ 210 211 { 211 if (CF_File_Write (ctx->fd, buffer, demandSize) < 0) 212 ctx->buffer = (char *)buffer; 213 ctx->length = demandSize; 214 215 if (CF_Log_Local_Flush (ctx) < 0) 212 216 return CF_ERROR_LOG_FLUSH; 213 217 } … … 338 342 return CF_ERROR_LOG_INVALID_CTX; 339 343 340 memset (context->path, 0x00, sizeof (context->path)); 341 342 if (context->buffer != NULL) 344 if (context->size > 0) 343 345 { 344 346 CF_Log_Flush (ctx);
Note:
See TracChangeset
for help on using the changeset viewer.