X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=src%2Fbin%2Fmemflush.cc;h=d577a166c8e0a4d4a2b7a37dbec54c741dbd398c;hb=cb40bfe8923a2b06160a965d95b45ca0ea3421ab;hp=b87521c3dcd91c4b44536a521f530d14fb21173f;hpb=0f27cca46a4a529459ca988268972f480a9730c6;p=awesomized%2Flibmemcached diff --git a/src/bin/memflush.cc b/src/bin/memflush.cc index b87521c3..d577a166 100644 --- a/src/bin/memflush.cc +++ b/src/bin/memflush.cc @@ -149,7 +149,7 @@ 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); }