mirror of
https://github.com/sheumann/hush.git
synced 2024-12-22 14:30:31 +00:00
Write progress meter to stderr instead of stdout
This commit is contained in:
parent
02553a2a18
commit
da7b82981b
2
Makefile
2
Makefile
@ -35,7 +35,7 @@ DOSTATIC = false
|
|||||||
# Leave this set to `false' for production use.
|
# Leave this set to `false' for production use.
|
||||||
# eg: `make DODEBUG=true tests'
|
# eg: `make DODEBUG=true tests'
|
||||||
# Do not enable this for production builds...
|
# Do not enable this for production builds...
|
||||||
DODEBUG = false
|
DODEBUG = true
|
||||||
|
|
||||||
# This enables compiling with dmalloc ( http://dmalloc.com/ )
|
# This enables compiling with dmalloc ( http://dmalloc.com/ )
|
||||||
# which is an excellent public domain mem leak and malloc problem
|
# which is an excellent public domain mem leak and malloc problem
|
||||||
|
@ -424,7 +424,7 @@ progressmeter(int flag)
|
|||||||
snprintf(buf + strlen(buf), sizeof(buf) - strlen(buf),
|
snprintf(buf + strlen(buf), sizeof(buf) - strlen(buf),
|
||||||
"%02d:%02d ETA", i / 60, i % 60);
|
"%02d:%02d ETA", i / 60, i % 60);
|
||||||
}
|
}
|
||||||
write(fileno(stdout), buf, strlen(buf));
|
write(fileno(stderr), buf, strlen(buf));
|
||||||
|
|
||||||
if (flag == -1) {
|
if (flag == -1) {
|
||||||
struct sigaction sa;
|
struct sigaction sa;
|
||||||
@ -475,7 +475,7 @@ progressmeter(int flag)
|
|||||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* $Id: wget.c,v 1.8 2000/12/07 03:53:47 tausq Exp $
|
* $Id: wget.c,v 1.9 2000/12/07 03:55:35 tausq Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
4
wget.c
4
wget.c
@ -424,7 +424,7 @@ progressmeter(int flag)
|
|||||||
snprintf(buf + strlen(buf), sizeof(buf) - strlen(buf),
|
snprintf(buf + strlen(buf), sizeof(buf) - strlen(buf),
|
||||||
"%02d:%02d ETA", i / 60, i % 60);
|
"%02d:%02d ETA", i / 60, i % 60);
|
||||||
}
|
}
|
||||||
write(fileno(stdout), buf, strlen(buf));
|
write(fileno(stderr), buf, strlen(buf));
|
||||||
|
|
||||||
if (flag == -1) {
|
if (flag == -1) {
|
||||||
struct sigaction sa;
|
struct sigaction sa;
|
||||||
@ -475,7 +475,7 @@ progressmeter(int flag)
|
|||||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* $Id: wget.c,v 1.8 2000/12/07 03:53:47 tausq Exp $
|
* $Id: wget.c,v 1.9 2000/12/07 03:55:35 tausq Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user