[Click] Patch for DMALLOC

Beyers Cronje bcronje at gmail.com
Wed Oct 3 09:39:46 EDT 2007


Hi Eddie,

Small compile bug with '--enable-dmalloc', patch below:

--- a/click/lib/router.cc    2007-09-15 19:39:40.000000000 +0200
+++ b/click/lib/router.cc    2007-10-03 15:28:34.000000000 +0200
@@ -908,12 +908,13 @@
     _runcount = 1;
     _master->prepare_router(this);

-    // Configure all elements in configure order. Remember the ones that
failed
-    if (all_ok) {
-    Vector<String> conf;
+
 #if CLICK_DMALLOC
     char dmalloc_buf[12];
 #endif
+    // Configure all elements in configure order. Remember the ones that
failed
+    if (all_ok) {
+    Vector<String> conf;
     for (int ord = 0; ord < _elements.size(); ord++) {
         int i = _element_configure_order[ord];
 #if CLICK_DMALLOC


More information about the click mailing list