X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=src%2Fmemcp.c;h=f1054ea9d1518d2a969afcf5b32cead3099f02a1;hb=4c269c98f4b92850758184713a305679dffb60d3;hp=0eb210a701c13dd45ec10c29ceeeba8bd31a877e;hpb=ad33b231aaf0e26cc56050c50d0b023b70da335d;p=awesomized%2Flibmemcached diff --git a/src/memcp.c b/src/memcp.c index 0eb210a7..f1054ea9 100644 --- a/src/memcp.c +++ b/src/memcp.c @@ -25,7 +25,7 @@ void options_parse(int argc, char *argv[]); static int opt_verbose= 0; static char *opt_servers= NULL; static int opt_method= OPT_SET; -static uint16_t opt_flags= 0; +static uint32_t opt_flags= 0; static time_t opt_expires= 0; int main(int argc, char *argv[]) @@ -119,8 +119,8 @@ int main(int argc, char *argv[]) { fprintf(stderr, "memcp: %s: memcache error %s", ptr, 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"); } @@ -187,7 +187,7 @@ void options_parse(int argc, char *argv[]) opt_servers= strdup(optarg); break; case OPT_FLAG: /* --flag */ - opt_flags= (uint16_t)strtol(optarg, (char **)NULL, 16); + opt_flags= (uint32_t)strtol(optarg, (char **)NULL, 16); break; case OPT_EXPIRE: /* --expire */ opt_expires= (time_t)strtoll(optarg, (char **)NULL, 10);