projects
/
m6w6
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Removing all of the multi-set bits (aka the buffer code is faster, so why
[m6w6/libmemcached]
/
src
/
memcat.c
diff --git
a/src/memcat.c
b/src/memcat.c
index 59d4a871f652927f09ed21addff2db3c463569d0..4aaffb95ca71f9cfa8a19bd6db5887a90d740cae 100644
(file)
--- a/
src/memcat.c
+++ b/
src/memcat.c
@@
-1,5
+1,5
@@
#include <stdio.h>
#include <stdio.h>
-#include <
stdint
.h>
+#include <
inttypes
.h>
#include <string.h>
#include <unistd.h>
#include <getopt.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;
memcached_st *memc;
char *string;
size_t string_length;
- uint
16
_t flags;
+ uint
32
_t flags;
memcached_return rc;
memcached_server_st *servers;
memcached_return rc;
memcached_server_st *servers;
@@
-69,8
+69,11
@@
int main(int argc, char *argv[])
}
else if (rc != MEMCACHED_NOTFOUND)
{
}
else if (rc != MEMCACHED_NOTFOUND)
{
- fprintf(stderr, "memcat: %s: memcache error %s
\n
",
+ fprintf(stderr, "memcat: %s: memcache error %s",
argv[optind], memcached_strerror(memc, rc));
argv[optind], memcached_strerror(memc, rc));
+ if (memc->cached_errno)
+ fprintf(stderr, " system error %s", strerror(memc->cached_errno));
+ fprintf(stderr, "\n");
}
optind++;
}
}
optind++;
}