Fix symbol issue when compiling internal tests.
[awesomized/libmemcached] / util / instance.cc
index e96f414f72e6280ba899414496b81ce376c3c5ac..a1665f36016ab0826363ff6d61d49decc7739d26 100644 (file)
@@ -36,7 +36,7 @@
  */
 
 
-#include <config.h>
+#include <mem_config.h>
 
 #include "util/instance.hpp"
 
@@ -211,7 +211,6 @@ bool Instance::run()
     case READING:
       if (operation->has_response())
       {
-        size_t total_read;
         ssize_t read_length;
 
         do
@@ -240,7 +239,6 @@ bool Instance::run()
           }
 
           operation->push(buffer, static_cast<size_t>(read_length));
-          total_read+= static_cast<size_t>(read_length);
 
         } while (more_to_read());
       } // end has_response