Move public memcached_version declaration from lib/common.h to include/memcached.h.
[awesomized/libmemcached] / src / memstat.c
index 6b7f0ae52770e05cec8b6b1b0fa7fecde05a6d0d..540d3f4fe27c0349d8da1aa92993e0e7360035e9 100644 (file)
@@ -4,6 +4,8 @@
 #include <sys/types.h>
 #include <sys/mman.h>
 #include <fcntl.h>
+#include <string.h>
+#include <assert.h>
 #include <getopt.h>
 
 #include <memcached.h>
@@ -39,7 +41,10 @@ int main(int argc, char *argv[])
     if ((temp= getenv("MEMCACHED_SERVERS")))
       opt_servers= strdup(temp);
     else
+    {
+      fprintf(stderr, "No Servers provided\n");
       exit(1);
+    }
   }
 
   memc= memcached_create(NULL);