mirror of
https://github.com/curl/curl.git
synced 2026-08-26 01:33:33 +03:00
removed obsoletetd myalarm() calls
This commit is contained in:
parent
09da90076f
commit
5cd267b2be
2 changed files with 1 additions and 5 deletions
|
|
@ -353,8 +353,6 @@ CURLcode Curl_ftp_connect(struct connectdata *conn)
|
||||||
CURLcode result;
|
CURLcode result;
|
||||||
int ftpcode;
|
int ftpcode;
|
||||||
|
|
||||||
myalarm(0); /* switch off the alarm stuff */
|
|
||||||
|
|
||||||
ftp = (struct FTP *)malloc(sizeof(struct FTP));
|
ftp = (struct FTP *)malloc(sizeof(struct FTP));
|
||||||
if(!ftp)
|
if(!ftp)
|
||||||
return CURLE_OUT_OF_MEMORY;
|
return CURLE_OUT_OF_MEMORY;
|
||||||
|
|
|
||||||
|
|
@ -220,8 +220,6 @@ Transfer(struct connectdata *c_conn)
|
||||||
|
|
||||||
hbufp = data->state.headerbuff;
|
hbufp = data->state.headerbuff;
|
||||||
|
|
||||||
myalarm (0); /* switch off the alarm-style timeout */
|
|
||||||
|
|
||||||
now = Curl_tvnow();
|
now = Curl_tvnow();
|
||||||
start = now;
|
start = now;
|
||||||
|
|
||||||
|
|
@ -1127,7 +1125,7 @@ CURLcode Curl_perform(struct SessionHandle *data)
|
||||||
if(newurl)
|
if(newurl)
|
||||||
free(newurl);
|
free(newurl);
|
||||||
|
|
||||||
/* make sure the alarm is switched off! */
|
/* make absolutely sure the alarm is switched off! */
|
||||||
if(data->set.timeout || data->set.connecttimeout)
|
if(data->set.timeout || data->set.connecttimeout)
|
||||||
myalarm(0);
|
myalarm(0);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue