X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=src%2Fbin%2Fmemtouch.cc;h=dbb9ad5ceeb0e79c30a1fe0b320c40979a10c960;hb=f2ab0a0c16503c35c23c6ad1ba11913d054ccdad;hp=e160e6a3dfade72213c1297bb67b50808cc30366;hpb=0f27cca46a4a529459ca988268972f480a9730c6;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); }