Changeset 4537 for pjproject/trunk/pjlib/src/pj/log.c
- Timestamp:
- Jun 19, 2013 6:47:43 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib/src/pj/log.c
r3752 r4537 50 50 PJ_LOG_HAS_SPACE | PJ_LOG_HAS_THREAD_SWC | 51 51 PJ_LOG_HAS_INDENT 52 #if defined(PJ_WIN32) && PJ_WIN32!=0 52 #if (defined(PJ_WIN32) && PJ_WIN32!=0) || \ 53 (defined(PJ_WIN64) && PJ_WIN64!=0) 53 54 | PJ_LOG_HAS_COLOR 54 55 #endif … … 104 105 { 105 106 if (indent < 0) indent = 0; 106 pj_thread_local_set(thread_indent_tls_id, (void*)( long)indent);107 pj_thread_local_set(thread_indent_tls_id, (void*)(pj_ssize_t)indent); 107 108 } 108 109 109 110 static int log_get_raw_indent() 110 111 { 111 return (long) pj_thread_local_get(thread_indent_tls_id);112 return (long)(pj_ssize_t)pj_thread_local_get(thread_indent_tls_id); 112 113 } 113 114 … … 268 269 if (thread_suspended_tls_id != -1) 269 270 { 270 pj_thread_local_set(thread_suspended_tls_id, (void*)PJ_TRUE); 271 pj_thread_local_set(thread_suspended_tls_id, 272 (void*)(pj_ssize_t)PJ_TRUE); 271 273 } 272 274 else … … 379 381 if (log_decor & PJ_LOG_HAS_SENDER) { 380 382 enum { SENDER_WIDTH = 14 }; 381 int sender_len = strlen(sender);383 pj_size_t sender_len = strlen(sender); 382 384 if (pre!=log_buffer) *pre++ = ' '; 383 385 if (sender_len <= SENDER_WIDTH) { … … 395 397 enum { THREAD_WIDTH = 12 }; 396 398 const char *thread_name = pj_thread_get_name(pj_thread_this()); 397 int thread_len = strlen(thread_name);399 pj_size_t thread_len = strlen(thread_name); 398 400 *pre++ = ' '; 399 401 if (thread_len <= THREAD_WIDTH) { … … 434 436 #endif 435 437 436 len = pre - log_buffer;438 len = (int)(pre - log_buffer); 437 439 438 440 /* Print the whole message to the string log_buffer. */
Note: See TracChangeset
for help on using the changeset viewer.