projects
/
awesomized
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
| inline |
side by side
simplify falsy comparisons
[awesomized/libmemcached]
/
src
/
bin
/
memflush.cc
diff --git
a/src/bin/memflush.cc
b/src/bin/memflush.cc
index b87521c3dcd91c4b44536a521f530d14fb21173f..d577a166c8e0a4d4a2b7a37dbec54c741dbd398c 100644
(file)
--- 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);
}