Fixed error in lack of pointer found (Tim Bunce discovered)
[awesomized/libmemcached] / src / memcat.c
index 057a585c8e7f61332c23090b0fc273f6c166abbc..4aaffb95ca71f9cfa8a19bd6db5887a90d740cae 100644 (file)
@@ -1,5 +1,5 @@
 #include <stdio.h>
-#include <stdint.h>
+#include <inttypes.h>
 #include <string.h>
 #include <unistd.h>
 #include <getopt.h>
@@ -23,7 +23,7 @@ int main(int argc, char *argv[])
   memcached_st *memc;
   char *string;
   size_t string_length;
-  uint16_t flags;
+  uint32_t flags;
   memcached_return rc;
   memcached_server_st *servers;
 
@@ -71,8 +71,8 @@ int main(int argc, char *argv[])
     {
       fprintf(stderr, "memcat: %s: memcache error %s", 
               argv[optind], memcached_strerror(memc, rc));
-      if (memc->my_errno)
-       fprintf(stderr, " system error %s", strerror(memc->my_errno));
+      if (memc->cached_errno)
+       fprintf(stderr, " system error %s", strerror(memc->cached_errno));
       fprintf(stderr, "\n");
     }
     optind++;