Fix case where --socket was not always been stored correctly.
[m6w6/libmemcached] / libmemcached / csl / server.h
index f78db99b71012f30905df6f421931f42aad6d1a4..fe97eb916a748d84886912804f6cd359fea61aed 100644 (file)
 
 struct server_t
 {
-  in_port_t port;
-  uint32_t weight;
   const char *c_str;
   size_t size;
+  in_port_t port;
+  uint32_t weight;
 };
-
-#if 0
-#include <iostream>
-inline std::ostream& operator<<(std::ostream& output, const server_t& arg)
-{
-  output.write(arg.c_str, arg.size);
-  output << ':' << arg.port;
-  output << '+' << arg.weight;
-  return output;
-}
-#endif