simplify falsy comparisons
[awesomized/libmemcached] / src / bin / memping.cc
index ba9c1ab236f802a47665b41e96f9881ad74d7420..902954c7882f988d6daa3e64727dcdc9903b5416 100644 (file)
@@ -146,7 +146,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);
       }