1
0
mirror of https://github.com/moparisthebest/curl synced 2025-03-01 01:41:50 -05:00

additional renames of Curl_ourerrno => Curl_sockerrno

This commit is contained in:
Daniel Stenberg 2006-05-05 10:24:27 +00:00
parent e85e30546c
commit 9bece2b313
5 changed files with 6 additions and 6 deletions

View File

@ -159,7 +159,7 @@ static CURLcode handshake(struct connectdata *conn,
} }
else { else {
/* anything that gets here is fatally bad */ /* anything that gets here is fatally bad */
failf(data, "select on SSL socket, errno: %d", Curl_ourerrno()); failf(data, "select on SSL socket, errno: %d", Curl_sockerrno());
return CURLE_SSL_CONNECT_ERROR; return CURLE_SSL_CONNECT_ERROR;
} }
} }

View File

@ -201,7 +201,7 @@ static void dump_addrinfo(struct connectdata *conn, const struct addrinfo *ai)
if (Curl_printable_address(ai, buf, sizeof(buf))) if (Curl_printable_address(ai, buf, sizeof(buf)))
printf("%s\n", buf); printf("%s\n", buf);
else else
printf("failed; %s\n", Curl_strerror(conn, Curl_ourerrno())); printf("failed; %s\n", Curl_strerror(conn, Curl_sockerrno()));
} }
} }
#else #else

View File

@ -152,7 +152,7 @@ int Curl_select(curl_socket_t readfd, curl_socket_t writefd, int timeout_ms)
do { do {
r = select((int)maxfd + 1, &fds_read, &fds_write, &fds_err, &timeout); r = select((int)maxfd + 1, &fds_read, &fds_write, &fds_err, &timeout);
} while((r == -1) && (Curl_ourerrno() == EINTR)); } while((r == -1) && (Curl_sockerrno() == EINTR));
if (r < 0) if (r < 0)
return -1; return -1;
@ -237,7 +237,7 @@ int Curl_poll(struct pollfd ufds[], unsigned int nfds, int timeout_ms)
do { do {
r = select((int)maxfd + 1, &fds_read, &fds_write, &fds_err, ptimeout); r = select((int)maxfd + 1, &fds_read, &fds_write, &fds_err, ptimeout);
} while((r == -1) && (Curl_ourerrno() == EINTR)); } while((r == -1) && (Curl_sockerrno() == EINTR));
if (r < 0) if (r < 0)
return -1; return -1;

View File

@ -43,7 +43,7 @@
#include <curl/curl.h> #include <curl/curl.h>
#include "urldata.h" #include "urldata.h"
#include "sendf.h" #include "sendf.h"
#include "connect.h" /* for the Curl_ourerrno() proto */ #include "connect.h" /* for the Curl_sockerrno() proto */
#include "sslgen.h" #include "sslgen.h"
#define _MPRINTF_REPLACE /* use the internal *printf() functions */ #define _MPRINTF_REPLACE /* use the internal *printf() functions */

View File

@ -49,7 +49,7 @@
#include "url.h" /* for the ssl config check function */ #include "url.h" /* for the ssl config check function */
#include "inet_pton.h" #include "inet_pton.h"
#include "ssluse.h" #include "ssluse.h"
#include "connect.h" /* Curl_ourerrno() proto */ #include "connect.h" /* Curl_sockerrno() proto */
#include "strequal.h" #include "strequal.h"
#include "select.h" #include "select.h"
#include "sslgen.h" #include "sslgen.h"