diff options
author | Denis Vlasenko | 2007-06-21 12:43:45 +0000 |
---|---|---|
committer | Denis Vlasenko | 2007-06-21 12:43:45 +0000 |
commit | 931de892cc1c07ba3ce728cce3e4a64fe59c8444 (patch) | |
tree | d9a2eb0a78971f0556ea28538e1705b203e107ad /coreutils | |
parent | a80b4a0fa74e7a19881790943d4f58de0411fa58 (diff) | |
download | busybox-931de892cc1c07ba3ce728cce3e4a64fe59c8444.zip busybox-931de892cc1c07ba3ce728cce3e4a64fe59c8444.tar.gz |
random shrinkage of statics, -60 bytes saved
Diffstat (limited to 'coreutils')
-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 d5e3a4d..11b8809 100644 --- a/coreutils/fold.c +++ b/coreutils/fold.c @@ -41,6 +41,8 @@ static int adjust_column(int column, char c) int fold_main(int argc, char **argv); int fold_main(int argc, char **argv) { + char *line_out = NULL; + int allocated_out = 0; char *w_opt; int width = 80; int i; @@ -75,8 +77,6 @@ int fold_main(int argc, char **argv) int c; int column = 0; /* Screen column where next char will go. */ int offset_out = 0; /* Index in `line_out' for next char. */ - static char *line_out = NULL; - static int allocated_out = 0; if (istream == NULL) { errs |= EXIT_FAILURE; @@ -95,8 +95,7 @@ int fold_main(int argc, char **argv) column = offset_out = 0; continue; } - -rescan: + rescan: column = adjust_column(column, c); if (column > width) { |