aboutsummaryrefslogtreecommitdiff
path: root/coreutils/dos2unix.c
diff options
context:
space:
mode:
authorvodz <vodz@69ca8d6d-28ef-0310-b511-8ec308f3f277>2005-10-15 10:23:55 +0000
committervodz <vodz@69ca8d6d-28ef-0310-b511-8ec308f3f277>2005-10-15 10:23:55 +0000
commit247a3694036baa952f6dee076b04b7a58ca7df59 (patch)
tree5fc98f67e92bb2eca75d33940a4f8698bb216f3a /coreutils/dos2unix.c
parent1b47ba10db00a05de229d503090f5f36a1de552b (diff)
downloadbusybox-w32-247a3694036baa952f6dee076b04b7a58ca7df59.tar.gz
busybox-w32-247a3694036baa952f6dee076b04b7a58ca7df59.tar.bz2
busybox-w32-247a3694036baa952f6dee076b04b7a58ca7df59.zip
common BUFSIZ BSS buffer, small reduce code, data and bss
git-svn-id: svn://busybox.net/trunk/busybox@11867 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'coreutils/dos2unix.c')
-rw-r--r--coreutils/dos2unix.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/coreutils/dos2unix.c b/coreutils/dos2unix.c
index 0c419aca7..0464df76f 100644
--- a/coreutils/dos2unix.c
+++ b/coreutils/dos2unix.c
@@ -44,12 +44,13 @@
44 * to pick a random letter to add to out temporary file. */ 44 * to pick a random letter to add to out temporary file. */
45typedef unsigned long int bb_uint64_t; 45typedef unsigned long int bb_uint64_t;
46 46
47#define tempFn bb_common_bufsiz1
48
47/* if fn is NULL then input is stdin and output is stdout */ 49/* if fn is NULL then input is stdin and output is stdout */
48static int convert(char *fn, int ConvType) 50static int convert(char *fn, int ConvType)
49{ 51{
50 int c, fd; 52 int c, fd;
51 struct timeval tv; 53 struct timeval tv;
52 RESERVE_CONFIG_BUFFER(tempFn, BUFSIZ);
53 static bb_uint64_t value=0; 54 static bb_uint64_t value=0;
54 FILE *in, *out; 55 FILE *in, *out;
55 56