simplify falsy comparisons
[awesomized/libmemcached] / src / bin / memrm.cc
index c2b4a36f7d6c27e33db13b7bb0d8f34a732a5426..d2e84e2309620afecd5e080dbc06c979e2c3143b 100644 (file)
@@ -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);
       }