aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2006-09-20 15:29:13 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2006-09-20 15:29:13 +0000
commita6585774f99e4975126872bd8343d35ce2607c2c (patch)
treedb90e193abf2d42be3cb77fd451004499e38072b
parent3ccc10067098e47743ac6f160eaab74682c0cf21 (diff)
downloadbusybox-a6585774f99e4975126872bd8343d35ce2607c2c.tar.gz
- fix embarrassing typo of mine. Closes bug #1038
-rw-r--r--coreutils/cmp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/coreutils/cmp.c b/coreutils/cmp.c
index ae3f50279..d26c3db8c 100644
--- a/coreutils/cmp.c
+++ b/coreutils/cmp.c
@@ -56,7 +56,7 @@ int cmp_main(int argc, char **argv)
opt = bb_getopt_ulflags(argc, argv, opt_chars);
- if ((opt & (CMP_OPT_s|CMP_OPT_l))
+ if (((opt & (CMP_OPT_s|CMP_OPT_l)) == (CMP_OPT_s|CMP_OPT_l))
|| (((unsigned int)(--argc - optind)) > 1))
bb_show_usage();
@@ -103,7 +103,7 @@ int cmp_main(int argc, char **argv)
* make sure we fflush before writing to stderr. */
xfflush_stdout();
}
- if (!opt & CMP_OPT_s) {
+ if (!(opt & CMP_OPT_s)) {
if (opt & CMP_OPT_l) {
line_pos = c1; /* line_pos is unused in the -l case. */
}