1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-22 08:08:50 -05:00

Curl_open() only take one argument now,

Curl_ldap_done() and Curl_dict_done() were removed,
compiler warnings corrected
This commit is contained in:
Daniel Stenberg 2001-08-14 08:40:06 +00:00
parent 85bb25e628
commit 616d8eda41

View File

@ -184,9 +184,11 @@ CURLcode Curl_close(CURL *curl)
} }
static static
int my_getpass(void *clientp, char *prompt, char* buffer, int buflen ) int my_getpass(void *clientp, const char *prompt, char* buffer, int buflen )
{ {
char *retbuf; char *retbuf;
clientp=NULL; /* prevent compiler warning */
retbuf = getpass_r(prompt, buffer, buflen); retbuf = getpass_r(prompt, buffer, buflen);
if(NULL == retbuf) if(NULL == retbuf)
return 1; return 1;
@ -195,7 +197,7 @@ int my_getpass(void *clientp, char *prompt, char* buffer, int buflen )
} }
CURLcode Curl_open(CURL **curl, char *url) CURLcode Curl_open(CURL **curl)
{ {
/* We don't yet support specifying the URL at this point */ /* We don't yet support specifying the URL at this point */
struct UrlData *data; struct UrlData *data;
@ -953,7 +955,7 @@ ConnectionExists(struct UrlData *data,
struct connectdata *needle, struct connectdata *needle,
struct connectdata **usethis) struct connectdata **usethis)
{ {
size_t i; long i;
struct connectdata *check; struct connectdata *check;
for(i=0; i< data->numconnects; i++) { for(i=0; i< data->numconnects; i++) {
@ -1016,7 +1018,7 @@ ConnectionExists(struct UrlData *data,
static int static int
ConnectionKillOne(struct UrlData *data) ConnectionKillOne(struct UrlData *data)
{ {
size_t i; long i;
struct connectdata *conn; struct connectdata *conn;
int highscore=-1; int highscore=-1;
int connindex=-1; int connindex=-1;
@ -1082,7 +1084,7 @@ static unsigned int
ConnectionStore(struct UrlData *data, ConnectionStore(struct UrlData *data,
struct connectdata *conn) struct connectdata *conn)
{ {
size_t i; long i;
for(i=0; i< data->numconnects; i++) { for(i=0; i< data->numconnects; i++) {
if(!data->connects[i]) if(!data->connects[i])
break; break;
@ -1870,14 +1872,14 @@ static CURLcode Connect(struct UrlData *data,
conn->port = (data->use_port && allow_port)?data->use_port:PORT_DICT; conn->port = (data->use_port && allow_port)?data->use_port:PORT_DICT;
conn->remote_port = PORT_DICT; conn->remote_port = PORT_DICT;
conn->curl_do = Curl_dict; conn->curl_do = Curl_dict;
conn->curl_done = Curl_dict_done; conn->curl_done = NULL; /* no DICT-specific done */
} }
else if (strequal(conn->protostr, "LDAP")) { else if (strequal(conn->protostr, "LDAP")) {
conn->protocol |= PROT_LDAP; conn->protocol |= PROT_LDAP;
conn->port = (data->use_port && allow_port)?data->use_port:PORT_LDAP; conn->port = (data->use_port && allow_port)?data->use_port:PORT_LDAP;
conn->remote_port = PORT_LDAP; conn->remote_port = PORT_LDAP;
conn->curl_do = Curl_ldap; conn->curl_do = Curl_ldap;
conn->curl_done = Curl_ldap_done; conn->curl_done = NULL; /* no LDAP-specific done */
} }
else if (strequal(conn->protostr, "FILE")) { else if (strequal(conn->protostr, "FILE")) {
conn->protocol |= PROT_FILE; conn->protocol |= PROT_FILE;