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

@ -119,7 +119,7 @@ urlinfo *prepare_lycos_url(ftps_request_t * request, char *ftps_loc,
(char *) kmalloc(lycos_url_len + strlen(request->file_name) + 300); (char *) kmalloc(lycos_url_len + strlen(request->file_name) + 300);
sprintf(lycos_url_buf, sprintf(lycos_url_buf,
"%s?form=advanced&query=%s&doit=Search&type=Exact+search&hits=%d&matches=&hitsprmatch=&limdom=&limpath=&limsize1=%Ld&limsize2=%lld&f1=Host&f2=Path&f3=Size&f4=-&f5=-&f6=-&header=none&sort=none&trlen=20", "%s?form=advanced&query=%s&doit=Search&type=Exact+search&hits=%d&matches=&hitsprmatch=&limdom=&limpath=&limsize1=%zd&limsize2=%zd&f1=Host&f2=Path&f3=Size&f4=-&f5=-&f6=-&header=none&sort=none&trlen=20",
ftps_loc, request->file_name, num_req_mirrors, ftps_loc, request->file_name, num_req_mirrors,
request->file_size, request->file_size); request->file_size, request->file_size);
@ -159,7 +159,7 @@ urlinfo *prepare_filesearching_url(ftps_request_t * request, char *ftps_loc,
(char *) kmalloc(filesearching_url_len + strlen(request->file_name) + 300); (char *) kmalloc(filesearching_url_len + strlen(request->file_name) + 300);
sprintf(filesearching_url_buf, sprintf(filesearching_url_buf,
"%s?q=%s&l=en&t=f&e=on&m=%d&o=n&s=on&s1=%Ld&s2=%Ld&d=&p=&p2=&x=10&y=14", "%s?q=%s&l=en&t=f&e=on&m=%d&o=n&s=on&s1=%zd&s2=%zd&d=&p=&p2=&x=10&y=14",
ftps_loc, request->file_name, num_req_mirrors, ftps_loc, request->file_name, num_req_mirrors,
request->file_size, request->file_size); request->file_size, request->file_size);

View File

@ -594,7 +594,7 @@ DL_Window::print_status (download_t * download, int quiet_mode)
{ {
fprintf (stdout, 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, i + 1, download->pconnections[i]->u.host,
proz_connection_get_status_string (download-> proz_connection_get_status_string (download->
pconnections pconnections
@ -603,7 +603,7 @@ DL_Window::print_status (download_t * download, int quiet_mode)
(download->pconnections[i])); (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); 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: //WGET looks like this:
//xx% [=======> ] nnn,nnn,nnn XXXX.XXK/s ETA hh:mm:ss //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), ((float)totalDownloaded) / ((float)totalFile / 100),
totalDownloaded, totalFile, (float)aveSpeed, timeLeft); totalDownloaded, totalFile, (float)aveSpeed, timeLeft);
fflush (stdout); fflush (stdout);

View File

@ -52,7 +52,7 @@ public:
void handle_joining_thread(); void handle_joining_thread();
void handle_dl_fatal_error(); void handle_dl_fatal_error();
void cleanup(boolean erase_dlparts); 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; connection_t *connection;
download_t *download; download_t *download;