diff options
| author | Bartosz Golaszewski <bartekgola@gmail.com> | 2014-01-18 15:25:58 +0100 |
|---|---|---|
| committer | Denys Vlasenko <vda.linux@googlemail.com> | 2014-01-19 06:47:06 +0100 |
| commit | 1a4d9f652169afa08680d3ff2c2cf9efa2a76a1b (patch) | |
| tree | edcc7c11796ad4e29a6ecea1cf3ac689e40e233e | |
| parent | 49111cdc4f58c844e315befb10b4b3db830eb143 (diff) | |
| download | busybox-w32-1a4d9f652169afa08680d3ff2c2cf9efa2a76a1b.tar.gz busybox-w32-1a4d9f652169afa08680d3ff2c2cf9efa2a76a1b.tar.bz2 busybox-w32-1a4d9f652169afa08680d3ff2c2cf9efa2a76a1b.zip | |
sort.c: remove a magic number from compare_keys()
Use bitwise OR of proper flags instead.
Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| -rw-r--r-- | coreutils/sort.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/coreutils/sort.c b/coreutils/sort.c index a1625fc9c..0b3b650c9 100644 --- a/coreutils/sort.c +++ b/coreutils/sort.c | |||
| @@ -225,7 +225,7 @@ static int compare_keys(const void *xarg, const void *yarg) | |||
| 225 | y = *(char **)yarg; | 225 | y = *(char **)yarg; |
| 226 | #endif | 226 | #endif |
| 227 | /* Perform actual comparison */ | 227 | /* Perform actual comparison */ |
| 228 | switch (flags & 7) { | 228 | switch (flags & (FLAG_n | FLAG_M | FLAG_g)) { |
| 229 | default: | 229 | default: |
| 230 | bb_error_msg_and_die("unknown sort type"); | 230 | bb_error_msg_and_die("unknown sort type"); |
| 231 | break; | 231 | break; |
