projects
/
awesomized
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
merge
[awesomized/libmemcached]
/
src
/
memcat.c
diff --git
a/src/memcat.c
b/src/memcat.c
index 057a585c8e7f61332c23090b0fc273f6c166abbc..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;
@@
-71,8
+71,8
@@
int main(int argc, char *argv[])
{
fprintf(stderr, "memcat: %s: memcache error %s",
argv[optind], memcached_strerror(memc, rc));
{
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++;
fprintf(stderr, "\n");
}
optind++;