be strict about port numbers being in in_port_t not uint32_t
[m6w6/libmemcached] / example / memcached_light.c
index 86087c5a9b7010140a4de95a0ade3b1e2c5fb72f..d9e14727a6e664be4910b8d9721a7d29fd09c84d 100644 (file)
@@ -234,7 +234,7 @@ int main(int argc, char **argv)
    * We need to initialize the handlers manually due to a bug in the
    * warnings generated by struct initialization in gcc (all the way up to 4.4)
    */
-  initialize_iterface_v0_handler();
+  initialize_interface_v0_handler();
 
   while ((cmd= getopt(argc, argv, "v1p:?")) != EOF)
   {
@@ -311,7 +311,6 @@ static void work(void)
     fds[max_poll].events= POLLIN;
     fds[max_poll].revents= 0;
     fds[max_poll].fd= server_sockets[max_poll];
-    ++max_poll;
   }
 
   while (true)