diff options
Diffstat (limited to 'src/pacman/downloadprog.c')
-rw-r--r-- | src/pacman/downloadprog.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/pacman/downloadprog.c b/src/pacman/downloadprog.c index f831656b..06345782 100644 --- a/src/pacman/downloadprog.c +++ b/src/pacman/downloadprog.c @@ -47,8 +47,6 @@ struct timeval initial_time; /* pacman options */ extern config_t *config; -extern unsigned int maxcols; - #define FILENAME_TRIM_LEN 21 #define UPDATE_SPEED_SEC 0.1 @@ -58,6 +56,7 @@ void log_progress(const char *filename, int xfered, int total) int i, hash; long chomp = 0; char *fname, *p; + unsigned int maxcols = getcols(); unsigned int progresslen = maxcols - 57; int percent = ((float)xfered) / ((float)total) * 100; struct timeval current_time; |