diff options
author | landley <landley@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-08-03 15:41:12 +0000 |
---|---|---|
committer | landley <landley@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-08-03 15:41:12 +0000 |
commit | 5e2a5391f9142bca773aab4c829615895b69a6b7 (patch) | |
tree | e4a2769349867c441cf2983d83097bb66701a733 /coreutils/fold.c | |
parent | e883e03918a0e26e390ea23996abdb8fc1925f88 (diff) | |
download | busybox-w32-5e2a5391f9142bca773aab4c829615895b69a6b7.tar.gz busybox-w32-5e2a5391f9142bca773aab4c829615895b69a6b7.tar.bz2 busybox-w32-5e2a5391f9142bca773aab4c829615895b69a6b7.zip |
Remove bb_ prefixes from xfuncs.c (and a few other places), consolidate
things like xasprintf() into xfuncs.c, remove xprint_file_by_name() (it only
had one user), clean up lots of #includes... General cleanup pass. What I've
been doing for the last couple days.
And it conflicts! I've removed httpd.c from this checkin due to somebody else
touching that file. It builds for me. I have to catch a bus. (Now you know
why I'm looking forward to Mercurial.)
git-svn-id: svn://busybox.net/trunk/busybox@15767 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'coreutils/fold.c')
-rw-r--r-- | coreutils/fold.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/coreutils/fold.c b/coreutils/fold.c index 665b93e6e..aff7bb1d9 100644 --- a/coreutils/fold.c +++ b/coreutils/fold.c | |||
@@ -10,13 +10,6 @@ | |||
10 | Licensed under the GPL v2 or later, see the file LICENSE in this tarball. | 10 | Licensed under the GPL v2 or later, see the file LICENSE in this tarball. |
11 | */ | 11 | */ |
12 | 12 | ||
13 | #include <ctype.h> | ||
14 | #include <errno.h> | ||
15 | #include <stdio.h> | ||
16 | #include <stdlib.h> | ||
17 | #include <string.h> | ||
18 | #include <sys/types.h> | ||
19 | #include <unistd.h> | ||
20 | #include "busybox.h" | 13 | #include "busybox.h" |
21 | 14 | ||
22 | static unsigned long flags; | 15 | static unsigned long flags; |
@@ -61,7 +54,7 @@ int fold_main(int argc, char **argv) | |||
61 | if (*a == '-' && !a[1]) | 54 | if (*a == '-' && !a[1]) |
62 | break; | 55 | break; |
63 | if (isdigit(*a)) { | 56 | if (isdigit(*a)) { |
64 | argv[i] = bb_xasprintf("-w%s", a); | 57 | argv[i] = xasprintf("-w%s", a); |
65 | } | 58 | } |
66 | } | 59 | } |
67 | } | 60 | } |