diff options
| author | Denys Vlasenko <vda.linux@googlemail.com> | 2018-01-08 10:27:23 +0100 |
|---|---|---|
| committer | Denys Vlasenko <vda.linux@googlemail.com> | 2018-01-08 10:27:23 +0100 |
| commit | 83c99ab4469e0f8a9a0e84ec506a8bc101cdcb91 (patch) | |
| tree | f7c92f0833a62c9cd269e44cc034f55f45e8294d | |
| parent | 562f63e9a4583c887012dff782924110b1d1fd6b (diff) | |
| download | busybox-w32-83c99ab4469e0f8a9a0e84ec506a8bc101cdcb91.tar.gz busybox-w32-83c99ab4469e0f8a9a0e84ec506a8bc101cdcb91.tar.bz2 busybox-w32-83c99ab4469e0f8a9a0e84ec506a8bc101cdcb91.zip | |
less: code shrink
function old new delta
less_main 2471 2464 -7
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| -rw-r--r-- | miscutils/less.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/miscutils/less.c b/miscutils/less.c index 82092f600..d60e6d920 100644 --- a/miscutils/less.c +++ b/miscutils/less.c | |||
| @@ -255,7 +255,6 @@ struct globals { | |||
| 255 | SET_PTR_TO_GLOBALS(xzalloc(sizeof(G))); \ | 255 | SET_PTR_TO_GLOBALS(xzalloc(sizeof(G))); \ |
| 256 | less_gets_pos = -1; \ | 256 | less_gets_pos = -1; \ |
| 257 | empty_line_marker = "~"; \ | 257 | empty_line_marker = "~"; \ |
| 258 | num_files = 1; \ | ||
| 259 | current_file = 1; \ | 258 | current_file = 1; \ |
| 260 | eof_error = 1; \ | 259 | eof_error = 1; \ |
| 261 | terminated = 1; \ | 260 | terminated = 1; \ |
| @@ -1773,9 +1772,8 @@ int less_main(int argc, char **argv) | |||
| 1773 | * (used by some setups for manpage display) | 1772 | * (used by some setups for manpage display) |
| 1774 | */ | 1773 | */ |
| 1775 | getopt32(argv, "EMmN~I" IF_FEATURE_LESS_TRUNCATE("S") /*ignored:*/"s"); | 1774 | getopt32(argv, "EMmN~I" IF_FEATURE_LESS_TRUNCATE("S") /*ignored:*/"s"); |
| 1776 | argc -= optind; | ||
| 1777 | argv += optind; | 1775 | argv += optind; |
| 1778 | num_files = argc; | 1776 | num_files = argc - optind; |
| 1779 | files = argv; | 1777 | files = argv; |
| 1780 | 1778 | ||
| 1781 | /* Another popular pager, most, detects when stdout | 1779 | /* Another popular pager, most, detects when stdout |
