diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2006-06-02 20:56:16 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2006-06-02 20:56:16 +0000 |
commit | e15d7573a1263fb364d1678c3a46be47a8b5e5ea (patch) | |
tree | 09e7b482b38ac571a01e936fb91df16dd1eeef42 /debianutils/pipe_progress.c | |
parent | ecae66ac16338d8cddb55e1782ebd8c5f670ff53 (diff) | |
download | busybox-w32-e15d7573a1263fb364d1678c3a46be47a8b5e5ea.tar.gz busybox-w32-e15d7573a1263fb364d1678c3a46be47a8b5e5ea.tar.bz2 busybox-w32-e15d7573a1263fb364d1678c3a46be47a8b5e5ea.zip |
- move #include busybox.h to the very top so we pull in the config
and eventual platform specific includes in early.
Diffstat (limited to 'debianutils/pipe_progress.c')
-rw-r--r-- | debianutils/pipe_progress.c | 29 |
1 files changed, 8 insertions, 21 deletions
diff --git a/debianutils/pipe_progress.c b/debianutils/pipe_progress.c index 95db16783..75d26e20f 100644 --- a/debianutils/pipe_progress.c +++ b/debianutils/pipe_progress.c | |||
@@ -1,35 +1,22 @@ | |||
1 | /* vi: set sw=4 ts=4: */ | ||
1 | /* | 2 | /* |
2 | * Monitor a pipe with a simple progress display. | 3 | * Monitor a pipe with a simple progress display. |
3 | * | 4 | * |
4 | * Copyright (C) 2003 by Rob Landley <rob@landley.net>, Joey Hess | 5 | * Copyright (C) 2003 by Rob Landley <rob@landley.net>, Joey Hess |
5 | * | 6 | * |
6 | * This program is free software; you can redistribute it and/or modify | 7 | * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. |
7 | * it under the terms of the GNU General Public License as published by | ||
8 | * the Free Software Foundation; either version 2 of the License, or | ||
9 | * (at your option) any later version. | ||
10 | * | ||
11 | * This program is distributed in the hope that it will be useful, | ||
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
14 | * General Public License for more details. | ||
15 | * | ||
16 | * You should have received a copy of the GNU General Public License | ||
17 | * along with this program; if not, write to the Free Software | ||
18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
19 | * | ||
20 | */ | 8 | */ |
21 | 9 | ||
10 | #include "busybox.h" | ||
22 | #include <stdio.h> | 11 | #include <stdio.h> |
23 | #include <stdlib.h> | 12 | #include <stdlib.h> |
24 | #include <unistd.h> | 13 | #include <unistd.h> |
25 | #include <time.h> | 14 | #include <time.h> |
26 | 15 | ||
27 | #include "busybox.h" | ||
28 | |||
29 | #define PIPE_PROGRESS_SIZE 4096 | 16 | #define PIPE_PROGRESS_SIZE 4096 |
30 | 17 | ||
31 | /* Read a block of data from stdin, write it to stdout. | 18 | /* Read a block of data from stdin, write it to stdout. |
32 | * Activity is indicated by a '.' to stderr | 19 | * Activity is indicated by a '.' to stderr |
33 | */ | 20 | */ |
34 | int pipe_progress_main(int argc, char **argv) | 21 | int pipe_progress_main(int argc, char **argv) |
35 | { | 22 | { |
@@ -48,8 +35,8 @@ int pipe_progress_main(int argc, char **argv) | |||
48 | 35 | ||
49 | fputc('\n', stderr); | 36 | fputc('\n', stderr); |
50 | 37 | ||
51 | #ifdef CONFIG_FEATURE_CLEAN_UP | 38 | if (ENABLE_FEATURE_CLEAN_UP) |
52 | RELEASE_CONFIG_BUFFER(buf); | 39 | RELEASE_CONFIG_BUFFER(buf); |
53 | #endif | 40 | |
54 | return 0; | 41 | return 0; |
55 | } | 42 | } |