X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libtest%2Fdrizzled.cc;h=8f5d3f586852085ad3dc8f5b22b0474a686b72a5;hb=cc0fa630757d5942387b2c38209718dbaba11f4a;hp=70eca0268591f8efbe511044e7d687fdbee4c64c;hpb=a833bac7bfb7b59bb95e84cc8989d0edae6a6136;p=awesomized%2Flibmemcached diff --git a/libtest/drizzled.cc b/libtest/drizzled.cc index 70eca026..8f5d3f58 100644 --- a/libtest/drizzled.cc +++ b/libtest/drizzled.cc @@ -34,7 +34,7 @@ * */ -#include +#include "libtest/yatlcon.h" #include #include @@ -70,6 +70,7 @@ using namespace libtest; namespace libtest { bool ping_drizzled(const in_port_t _port) { + (void)(_port); #if defined(HAVE_LIBDRIZZLE) && HAVE_LIBDRIZZLE { drizzle_st *drizzle= drizzle_create(NULL); @@ -148,7 +149,7 @@ public: return "drizzled"; }; - void log_file_option(Application& app, const std::string& arg) + void log_file_option(Application&, const std::string&) { } @@ -181,9 +182,10 @@ public: { if (arg > 0) { - char buffer[1024]; - snprintf(buffer, sizeof(buffer), "--drizzle-protocol.port=%d", int(arg)); - app.add_option(buffer); + libtest::vchar_t buffer; + buffer.resize(1024); + snprintf(&buffer[1024], buffer.size(), "--drizzle-protocol.port=%d", int(arg)); + app.add_option(&buffer[1024]); } }