From: Brian Aker Date: Sun, 2 Feb 2014 03:20:10 +0000 (+0100) Subject: Fix copy/paste error. X-Git-Tag: 1.0.18~8^2 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=34ca5a880bb5f7f21a4fff59d105bc6ea7792583;p=m6w6%2Flibmemcached Fix copy/paste error. --- diff --git a/clients/memcp.cc b/clients/memcp.cc index 6c6d1e96..d76faeec 100644 --- a/clients/memcp.cc +++ b/clients/memcp.cc @@ -68,13 +68,13 @@ static long strtol_wrapper(const char *nptr, int base, bool *error) or (errno != 0 && val == 0)) { *error= true; - return EXIT_SUCCESS; + return 0; } if (endptr == nptr) { *error= true; - return EXIT_SUCCESS; + return 0; } *error= false; @@ -385,10 +385,10 @@ static void options_parse(int argc, char *argv[]) case OPT_EXPIRE: /* --expire */ { bool strtol_error; - opt_expires= (time_t)strtol_wrapper(optarg, 16, &strtol_error); + opt_expires= (time_t)strtol_wrapper(optarg, 10, &strtol_error); if (strtol_error == true) { - fprintf(stderr, "Bad value passed via --flag\n"); + fprintf(stderr, "Bad value passed via --expire\n"); exit(1); } }