static int opt_verbose= 0;
static char *opt_servers= NULL;
static int opt_method= OPT_SET;
static int opt_verbose= 0;
static char *opt_servers= NULL;
static int opt_method= OPT_SET;
static time_t opt_expires= 0;
int main(int argc, char *argv[])
static time_t opt_expires= 0;
int main(int argc, char *argv[])
{
fprintf(stderr, "memcp: %s: memcache error %s",
ptr, memcached_strerror(memc, rc));
{
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));
break;
case OPT_EXPIRE: /* --expire */
opt_expires= (time_t)strtoll(optarg, (char **)NULL, 10);
break;
case OPT_EXPIRE: /* --expire */
opt_expires= (time_t)strtoll(optarg, (char **)NULL, 10);