diff options
author | aldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-09-20 15:29:13 +0000 |
---|---|---|
committer | aldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-09-20 15:29:13 +0000 |
commit | 58127a71932cd2de230afd20b0f30f85e61e3e6d (patch) | |
tree | db90e193abf2d42be3cb77fd451004499e38072b | |
parent | 6bdbb6f7adf13494dcda1315ccc5a7687b80e31e (diff) | |
download | busybox-w32-58127a71932cd2de230afd20b0f30f85e61e3e6d.tar.gz busybox-w32-58127a71932cd2de230afd20b0f30f85e61e3e6d.tar.bz2 busybox-w32-58127a71932cd2de230afd20b0f30f85e61e3e6d.zip |
- fix embarrassing typo of mine. Closes bug #1038
git-svn-id: svn://busybox.net/trunk/busybox@16162 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rw-r--r-- | coreutils/cmp.c | 4 |
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) | |||
56 | 56 | ||
57 | opt = bb_getopt_ulflags(argc, argv, opt_chars); | 57 | opt = bb_getopt_ulflags(argc, argv, opt_chars); |
58 | 58 | ||
59 | if ((opt & (CMP_OPT_s|CMP_OPT_l)) | 59 | if (((opt & (CMP_OPT_s|CMP_OPT_l)) == (CMP_OPT_s|CMP_OPT_l)) |
60 | || (((unsigned int)(--argc - optind)) > 1)) | 60 | || (((unsigned int)(--argc - optind)) > 1)) |
61 | bb_show_usage(); | 61 | bb_show_usage(); |
62 | 62 | ||
@@ -103,7 +103,7 @@ int cmp_main(int argc, char **argv) | |||
103 | * make sure we fflush before writing to stderr. */ | 103 | * make sure we fflush before writing to stderr. */ |
104 | xfflush_stdout(); | 104 | xfflush_stdout(); |
105 | } | 105 | } |
106 | if (!opt & CMP_OPT_s) { | 106 | if (!(opt & CMP_OPT_s)) { |
107 | if (opt & CMP_OPT_l) { | 107 | if (opt & CMP_OPT_l) { |
108 | line_pos = c1; /* line_pos is unused in the -l case. */ | 108 | line_pos = c1; /* line_pos is unused in the -l case. */ |
109 | } | 109 | } |