correct build on gcc 4

This commit is contained in:
Mario Fetka
2010-09-01 07:45:17 +02:00
parent 94f164fc02
commit 81abc1ef12
3 changed files with 6 additions and 6 deletions

View File

@@ -594,7 +594,7 @@ DL_Window::print_status (download_t * download, int quiet_mode)
{
fprintf (stdout,
"%2.2d %-30.30s %15.15s %10Ld\n",
"%2.2d %-30.30s %15.15s %10zd\n",
i + 1, download->pconnections[i]->u.host,
proz_connection_get_status_string (download->
pconnections
@@ -603,7 +603,7 @@ DL_Window::print_status (download_t * download, int quiet_mode)
(download->pconnections[i]));
}
fprintf (stdout, "Total Bytes received %Ld Kb\n",
fprintf (stdout, "Total Bytes received %zd Kb\n",
proz_download_get_total_bytes_got (download) / 1024);
@@ -643,7 +643,7 @@ DL_Window::print_status (download_t * download, int quiet_mode)
//WGET looks like this:
//xx% [=======> ] nnn,nnn,nnn XXXX.XXK/s ETA hh:mm:ss
fprintf (stdout, " %.2lf%% %lldKb/%lldkb %0.3fKb/s ETA %s \r",
fprintf (stdout, " %.2lf%% %zdKb/%zdkb %0.3fKb/s ETA %s \r",
((float)totalDownloaded) / ((float)totalFile / 100),
totalDownloaded, totalFile, (float)aveSpeed, timeLeft);
fflush (stdout);

View File

@@ -52,7 +52,7 @@ public:
void handle_joining_thread();
void handle_dl_fatal_error();
void cleanup(boolean erase_dlparts);
void DL_Window::print_status(download_t * download, int quiet_mode);
void print_status(download_t * download, int quiet_mode);
connection_t *connection;
download_t *download;