diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-06-21 12:43:45 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-06-21 12:43:45 +0000 |
commit | 931de892cc1c07ba3ce728cce3e4a64fe59c8444 (patch) | |
tree | d9a2eb0a78971f0556ea28538e1705b203e107ad /coreutils/fold.c | |
parent | a80b4a0fa74e7a19881790943d4f58de0411fa58 (diff) | |
download | busybox-w32-931de892cc1c07ba3ce728cce3e4a64fe59c8444.tar.gz busybox-w32-931de892cc1c07ba3ce728cce3e4a64fe59c8444.tar.bz2 busybox-w32-931de892cc1c07ba3ce728cce3e4a64fe59c8444.zip |
random shrinkage of statics, -60 bytes saved
Diffstat (limited to 'coreutils/fold.c')
-rw-r--r-- | coreutils/fold.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/coreutils/fold.c b/coreutils/fold.c index d5e3a4d72..11b880969 100644 --- a/coreutils/fold.c +++ b/coreutils/fold.c | |||
@@ -41,6 +41,8 @@ static int adjust_column(int column, char c) | |||
41 | int fold_main(int argc, char **argv); | 41 | int fold_main(int argc, char **argv); |
42 | int fold_main(int argc, char **argv) | 42 | int fold_main(int argc, char **argv) |
43 | { | 43 | { |
44 | char *line_out = NULL; | ||
45 | int allocated_out = 0; | ||
44 | char *w_opt; | 46 | char *w_opt; |
45 | int width = 80; | 47 | int width = 80; |
46 | int i; | 48 | int i; |
@@ -75,8 +77,6 @@ int fold_main(int argc, char **argv) | |||
75 | int c; | 77 | int c; |
76 | int column = 0; /* Screen column where next char will go. */ | 78 | int column = 0; /* Screen column where next char will go. */ |
77 | int offset_out = 0; /* Index in `line_out' for next char. */ | 79 | int offset_out = 0; /* Index in `line_out' for next char. */ |
78 | static char *line_out = NULL; | ||
79 | static int allocated_out = 0; | ||
80 | 80 | ||
81 | if (istream == NULL) { | 81 | if (istream == NULL) { |
82 | errs |= EXIT_FAILURE; | 82 | errs |= EXIT_FAILURE; |
@@ -95,8 +95,7 @@ int fold_main(int argc, char **argv) | |||
95 | column = offset_out = 0; | 95 | column = offset_out = 0; |
96 | continue; | 96 | continue; |
97 | } | 97 | } |
98 | 98 | rescan: | |
99 | rescan: | ||
100 | column = adjust_column(column, c); | 99 | column = adjust_column(column, c); |
101 | 100 | ||
102 | if (column > width) { | 101 | if (column > width) { |