X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=src%2Fbin%2Fmemrm.cc;h=d2e84e2309620afecd5e080dbc06c979e2c3143b;hb=f2ab0a0c16503c35c23c6ad1ba11913d054ccdad;hp=c2b4a36f7d6c27e33db13b7bb0d8f34a732a5426;hpb=0f27cca46a4a529459ca988268972f480a9730c6;p=awesomized%2Flibmemcached diff --git a/src/bin/memrm.cc b/src/bin/memrm.cc index c2b4a36f..d2e84e23 100644 --- a/src/bin/memrm.cc +++ b/src/bin/memrm.cc @@ -190,7 +190,7 @@ static void options_parse(int argc, char *argv[]) { case OPT_EXPIRE: /* --expire */ errno = 0; opt_expire = (time_t) strtoll(optarg, (char **) NULL, 10); - if (errno != 0) { + if (errno) { std::cerr << "Incorrect value passed to --expire: `" << optarg << "`" << std::endl; exit(EXIT_FAILURE); }