projects
/
awesomized
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Remove sample.cnf
[awesomized/libmemcached]
/
clients
/
memcat.c
diff --git
a/clients/memcat.c
b/clients/memcat.c
index d0a6b38faf769e8e2a3c87b11d7c0a524f850555..3f0d92b4af6e8afceab649e74950ad89a59c1470 100644
(file)
--- a/
clients/memcat.c
+++ b/
clients/memcat.c
@@
-9,7
+9,8
@@
*
*/
*
*/
-#include "libmemcached/common.h"
+#include "config.h"
+
#include <stdio.h>
#include <inttypes.h>
#include <string.h>
#include <stdio.h>
#include <inttypes.h>
#include <string.h>
@@
-47,6
+48,7
@@
int main(int argc, char *argv[])
int return_code= 0;
options_parse(argc, argv);
int return_code= 0;
options_parse(argc, argv);
+ initialize_sockets();
if (!opt_servers)
{
if (!opt_servers)
{
@@
-74,7
+76,7
@@
int main(int argc, char *argv[])
if (!initialize_sasl(memc, opt_username, opt_passwd))
{
memcached_free(memc);
if (!initialize_sasl(memc, opt_username, opt_passwd))
{
memcached_free(memc);
- return
1
;
+ return
EXIT_FAILURE
;
}
while (optind < argc)
}
while (optind < argc)
@@
-136,9
+138,9
@@
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
->cached_errno
)
+ if (memc
ached_last_error_errno(memc)
)
{
{
- fprintf(stderr, " system error %s", strerror(memc
->cached_errno
));
+ fprintf(stderr, " system error %s", strerror(memc
ached_last_error_errno(memc)
));
}
fprintf(stderr, "\n");
}
fprintf(stderr, "\n");