bin/xbps-install/fetch_cb.c: use STDOUT_FILENO.

This commit is contained in:
Juan RP 2014-10-30 11:25:37 +01:00
parent b179c16fc0
commit 59781f4e91

View File

@ -162,7 +162,7 @@ fetch_file_progress_cb(const struct xbps_fetch_cb_data *xfpd, void *cbdata)
if (xfpd->cb_start) {
/* start transfer stats */
v_tty = isatty(STDERR_FILENO);
v_tty = isatty(STDOUT_FILENO);
get_time(&xfer->start);
xfer->last.tv_sec = xfer->last.tv_usec = 0;
} else if (xfpd->cb_update) {