X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libtest%2Fmemcached.cc;h=61c3209fc166993076ab10ecec2f7e1dc1376cc6;hb=d52b943dbd966665962fb4af269688effa8fc81e;hp=c3f40fa8f8f1e03bee20713ec657ea24ec1688ad;hpb=bed5d0baa746d10fd3899be96a6ab8673daa7e03;p=awesomized%2Flibmemcached diff --git a/libtest/memcached.cc b/libtest/memcached.cc index c3f40fa8..61c3209f 100644 --- a/libtest/memcached.cc +++ b/libtest/memcached.cc @@ -111,7 +111,8 @@ static bool cycle_server(server_st *server) bool server_startup(server_startup_st *construct) { - Log; + Logn(); + if (getenv(((char *)"MEMCACHED_SERVERS"))) { construct->server_list= getenv(((char *)"MEMCACHED_SERVERS")); @@ -123,7 +124,7 @@ bool server_startup(server_startup_st *construct) std::string server_config_string; uint32_t port_base= 0; - for (uint32_t x= 0; x < (construct->count -1); x++) + for (uint32_t x= 0; x < uint32_t(construct->count -1); x++) { server_st *server= NULL; @@ -246,7 +247,7 @@ bool server_startup(server_startup_st *construct) construct->server_list= server_config_string; } - Log; + Logn(); srandom((unsigned int)time(NULL));