From 34ca5a880bb5f7f21a4fff59d105bc6ea7792583 Mon Sep 17 00:00:00 2001 From: Brian Aker Date: Sun, 2 Feb 2014 04:20:10 +0100 Subject: [PATCH] Fix copy/paste error. --- clients/memcp.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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); } } -- 2.30.2