]> git.saurik.com Git - apple/security.git/blobdiff - OSX/libsecurity_cdsa_utilities/lib/walkers.h
Security-58286.41.2.tar.gz
[apple/security.git] / OSX / libsecurity_cdsa_utilities / lib / walkers.h
index 6178a3597116a5b2f745a9092b6c500f37a5f869..4ea7884e05c0ffa7345ef49644fca97371ecd59d 100644 (file)
@@ -56,7 +56,7 @@ namespace DataWalkers {
 
 
 #if WALKERDEBUG
-# define DEBUGWALK(who)        secdebug("walkers", "walk " who " %s@%p (%ld)", \
+# define DEBUGWALK(who)        secinfo("walkers", "walk " who " %s@%p (%ld)", \
                                                                        Debug::typeName(addr).c_str(), addr, size)
 #else
 # define DEBUGWALK(who)        /* nothing */
@@ -121,6 +121,7 @@ public:
 };
 
 
+
 //
 // Walk a structure and apply a constant linear shift to all pointers
 // encountered. This is useful when a structure and its deep components
@@ -315,7 +316,7 @@ void chunkFree(T *obj, Allocator &alloc = Allocator::standard())
 }
 
 template <class T>
-void chunkFree(const T &obj, Allocator &alloc = Allocator::standard())
+void chunkFree(T &obj, Allocator &alloc = Allocator::standard())
 {
        ChunkFreeWalker w(alloc);
        walk(w, obj);