X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;ds=sidebyside;f=src%2Fbin%2Fmemtouch.cc;fp=src%2Fbin%2Fmemtouch.cc;h=dbb9ad5ceeb0e79c30a1fe0b320c40979a10c960;hb=cb40bfe8923a2b06160a965d95b45ca0ea3421ab;hp=e160e6a3dfade72213c1297bb67b50808cc30366;hpb=db80327002e27589b29fe4bf353202904f373171;p=awesomized%2Flibmemcached diff --git a/src/bin/memtouch.cc b/src/bin/memtouch.cc index e160e6a3..dbb9ad5c 100644 --- a/src/bin/memtouch.cc +++ b/src/bin/memtouch.cc @@ -200,7 +200,7 @@ void options_parse(int argc, char *argv[]) { case OPT_EXPIRE: errno = 0; expiration = time_t(strtoul(optarg, (char **) NULL, 10)); - if (errno != 0) { + if (errno) { fprintf(stderr, "Invalid value for --expire: %s\n", optarg); exit(EXIT_FAILURE); }