Fix cppcheck warnings.
[m6w6/libmemcached] / libmemcachedprotocol / common.h
index 398e7ee2d238153804181a22be2bbb0c829b6fc7..8453ccd8619b417c3a2bfbfa4e57785c02a88575 100644 (file)
 #pragma once
 
 #include "config.h"
-#if !defined(__cplusplus)
-# include <stdbool.h>
-#endif
 #include <assert.h>
 
 #include <libmemcachedprotocol-0.0/handler.h>
 #include <libmemcachedprotocol/cache.h>
 #include <libmemcached/byteorder.h>
+#include <libmemcached/socket.hpp>
 
 /*
  * I don't really need the following two functions as function pointers
@@ -126,6 +124,7 @@ enum ascii_cmd {
 };
 
 struct memcached_protocol_client_st {
+  bool is_verbose;
   memcached_protocol_st *root;
   memcached_socket_t sock;
   int error;