trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bc...@apache.org
Subject svn commit: r939513 - in /incubator/trafficserver/traffic/trunk/iocore/eventsystem: I_Continuation.h I_IOBuffer.h I_Lock.h Lock.cc
Date Thu, 29 Apr 2010 23:51:11 GMT
Author: bcall
Date: Thu Apr 29 23:51:11 2010
New Revision: 939513

URL: http://svn.apache.org/viewvc?rev=939513&view=rev
Log:
TS-322 Updates to make the debug build compile without having
-Wno-char-subscripts and -Wno-write-strings

Modified:
    incubator/trafficserver/traffic/trunk/iocore/eventsystem/I_Continuation.h
    incubator/trafficserver/traffic/trunk/iocore/eventsystem/I_IOBuffer.h
    incubator/trafficserver/traffic/trunk/iocore/eventsystem/I_Lock.h
    incubator/trafficserver/traffic/trunk/iocore/eventsystem/Lock.cc

Modified: incubator/trafficserver/traffic/trunk/iocore/eventsystem/I_Continuation.h
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/iocore/eventsystem/I_Continuation.h?rev=939513&r1=939512&r2=939513&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/iocore/eventsystem/I_Continuation.h (original)
+++ incubator/trafficserver/traffic/trunk/iocore/eventsystem/I_Continuation.h Thu Apr 29 23:51:11
2010
@@ -108,7 +108,7 @@ public:
   ContinuationHandler handler;
 
 #ifdef DEBUG
-  char *handler_name;
+  const char *handler_name;
 #endif
 
   /**

Modified: incubator/trafficserver/traffic/trunk/iocore/eventsystem/I_IOBuffer.h
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/iocore/eventsystem/I_IOBuffer.h?rev=939513&r1=939512&r2=939513&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/iocore/eventsystem/I_IOBuffer.h (original)
+++ incubator/trafficserver/traffic/trunk/iocore/eventsystem/I_IOBuffer.h Thu Apr 29 23:51:11
2010
@@ -1191,7 +1191,7 @@ MIOBufferAccessor():mbuf(NULL), entry(NU
   ~MIOBufferAccessor();
 
 #ifdef DEBUG
-  char *name;
+  const char *name;
 #endif
 
 private:

Modified: incubator/trafficserver/traffic/trunk/iocore/eventsystem/I_Lock.h
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/iocore/eventsystem/I_Lock.h?rev=939513&r1=939512&r2=939513&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/iocore/eventsystem/I_Lock.h (original)
+++ incubator/trafficserver/traffic/trunk/iocore/eventsystem/I_Lock.h Thu Apr 29 23:51:11
2010
@@ -35,9 +35,9 @@ class EThread;
 typedef EThread *EThreadPtr;
 typedef volatile EThreadPtr VolatileEThreadPtr;
 
-inkcoreapi extern void lock_waiting(const char *file, int line, char *handler);
-inkcoreapi extern void lock_holding(const char *file, int line, char *handler);
-extern void lock_taken(const char *file, int line, char *handler);
+inkcoreapi extern void lock_waiting(const char *file, int line, const char *handler);
+inkcoreapi extern void lock_holding(const char *file, int line, const char *handler);
+extern void lock_taken(const char *file, int line, const char *handler);
 
 /**
   Lock object used in continuations and threads.
@@ -92,9 +92,9 @@ public:
 
 #ifdef DEBUG
   ink_hrtime hold_time;
-  char *file;
+  const char *file;
   int line;
-  char *handler;
+  const char *handler;
 
 #  ifdef MAX_LOCK_TAKEN
   int taken;
@@ -382,7 +382,7 @@ ProxyMutexPtr(ProxyMutex * ptr = 0):m_pt
 inline bool
 Mutex_trylock(
 #ifdef DEBUG
-               char *afile, int aline, char *ahandler,
+               const char *afile, int aline, const char *ahandler,
 #endif
                ProxyMutex * m, EThread * t)
 {
@@ -429,7 +429,7 @@ Mutex_trylock(
 inline bool
 Mutex_trylock_spin(
 #ifdef DEBUG
-                    char *afile, int aline, char *ahandler,
+                    const char *afile, int aline, const char *ahandler,
 #endif
                     ProxyMutex * m, EThread * t, int spincnt = 1)
 {
@@ -481,7 +481,7 @@ Mutex_trylock_spin(
 inline int
 Mutex_lock(
 #ifdef DEBUG
-            char *afile, int aline, char *ahandler,
+            const char *afile, int aline, const char *ahandler,
 #endif
             ProxyMutex * m, EThread * t)
 {
@@ -548,7 +548,7 @@ struct MutexLock
 
   MutexLock(
 #ifdef DEBUG
-             char *afile, int aline, char *ahandler,
+             const char *afile, int aline, const char *ahandler,
 #endif                          //DEBUG
              ProxyMutex * am, EThread * t):m(am)
   {
@@ -562,7 +562,7 @@ struct MutexLock
 
   void set_and_take(
 #ifdef DEBUG
-                     char *afile, int aline, char *ahandler,
+                     const char *afile, int aline, const char *ahandler,
 #endif                          //DEBUG
                      ProxyMutex * am, EThread * t)
   {
@@ -604,7 +604,7 @@ struct MutexTryLock
 
     MutexTryLock(
 #ifdef DEBUG
-                  char *afile, int aline, char *ahandler,
+                  const char *afile, int aline, const char *ahandler,
 #endif                          //DEBUG
                   ProxyMutex * am, EThread * t)
   {
@@ -619,7 +619,7 @@ struct MutexTryLock
 
   MutexTryLock(
 #ifdef DEBUG
-                char *afile, int aline, char *ahandler,
+                const char *afile, int aline, const char *ahandler,
 #endif                          //DEBUG
                 ProxyMutex * am, EThread * t, int sp)
   {

Modified: incubator/trafficserver/traffic/trunk/iocore/eventsystem/Lock.cc
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/iocore/eventsystem/Lock.cc?rev=939513&r1=939512&r2=939513&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/iocore/eventsystem/Lock.cc (original)
+++ incubator/trafficserver/traffic/trunk/iocore/eventsystem/Lock.cc Thu Apr 29 23:51:11 2010
@@ -43,7 +43,7 @@ ClassAllocator<ProxyMutex> mutexAllocato
 #endif
 
 void
-lock_waiting(const char *file, int line, char *handler)
+lock_waiting(const char *file, int line, const char *handler)
 {
   (void) file;
   (void) line;
@@ -56,7 +56,7 @@ lock_waiting(const char *file, int line,
 }
 
 void
-lock_holding(const char *file, int line, char *handler)
+lock_holding(const char *file, int line, const char *handler)
 {
   (void) file;
   (void) line;
@@ -69,7 +69,7 @@ lock_holding(const char *file, int line,
 }
 
 void
-lock_taken(const char *file, int line, char *handler)
+lock_taken(const char *file, int line, const char *handler)
 {
   (void) file;
   (void) line;



Mime
View raw message