correct build on gcc 4
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user