From 931de892cc1c07ba3ce728cce3e4a64fe59c8444 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Thu, 21 Jun 2007 12:43:45 +0000 Subject: random shrinkage of statics, -60 bytes saved --- coreutils/fold.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'coreutils/fold.c') 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) 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) { -- cgit v1.2.3