aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Fox <pgf@brightstareng.com>2005-12-08 18:48:20 +0000
committerPaul Fox <pgf@brightstareng.com>2005-12-08 18:48:20 +0000
commit377bdaff3be5e6598d17b8c32fddad73015f54ab (patch)
tree987bcbb3162bc3d5c4d915753d3cf5af8440d9fa
parentcc59aae65f3d0c4537c31fbfea570bc1abfadf9b (diff)
downloadbusybox-377bdaff3be5e6598d17b8c32fddad73015f54ab.tar.gz
avoid mixed declarations, to support older compilers just a little longer.
-rw-r--r--coreutils/fold.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/coreutils/fold.c b/coreutils/fold.c
index 31412da07..e45a75b33 100644
--- a/coreutils/fold.c
+++ b/coreutils/fold.c
@@ -47,6 +47,8 @@ static int adjust_column(int column, char c)
extern int fold_main(int argc, char **argv)
{
+ char *w_opt;
+
/* If nonzero, at least one of the files we read was standard input. */
int have_read_stdin = 0;
@@ -74,7 +76,6 @@ extern int fold_main(int argc, char **argv)
}
}
- char *w_opt;
flags = bb_getopt_ulflags(argc, argv, "bsw:", &w_opt);
if (flags & 4)
width = bb_xgetlarg(w_opt, 10, 1, 10000);