trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pque...@apache.org
Subject svn commit: r884397 - /incubator/trafficserver/traffic/trunk/libinktomi++/Diags.cc
Date Thu, 26 Nov 2009 04:41:05 GMT
Author: pquerna
Date: Thu Nov 26 04:41:05 2009
New Revision: 884397

URL: http://svn.apache.org/viewvc?rev=884397&view=rev
Log:
TS-2: Fix compiler error by casting pthread_t to a long instead of an int. error: cast from
'_opaque_pthread_t*' to 'unsigned int' loses precision

Modified:
    incubator/trafficserver/traffic/trunk/libinktomi++/Diags.cc

Modified: incubator/trafficserver/traffic/trunk/libinktomi++/Diags.cc
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/libinktomi%2B%2B/Diags.cc?rev=884397&r1=884396&r2=884397&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/libinktomi++/Diags.cc (original)
+++ incubator/trafficserver/traffic/trunk/libinktomi++/Diags.cc Thu Nov 26 04:41:05 2009
@@ -212,7 +212,7 @@
 
   // add the thread id
   pthread_t id = pthread_self();
-  end_of_format += snprintf(end_of_format, sizeof(format_buf), "{%u} ", (unsigned) id);
+  end_of_format += snprintf(end_of_format, sizeof(format_buf), "{%lu} ", (unsigned long)
id);
 
   ////////////////////////////////
   // start with the user prefix //



Mime
View raw message