mirror of
https://github.com/curl/curl.git
synced 2026-06-16 22:35:38 +03:00
use macros ERRNO, SET_ERRNO(), SOCKERRNO and SET_SOCKERRNO() for errno handling
This commit is contained in:
parent
aa4435c23b
commit
4894ce16fc
9 changed files with 31 additions and 72 deletions
|
|
@ -59,19 +59,6 @@
|
|||
const struct in6_addr in6addr_any = {{ IN6ADDR_ANY_INIT }};
|
||||
#endif
|
||||
|
||||
/*
|
||||
* our_sockerrno() returns the *socket-related* errno (or equivalent) on this
|
||||
* platform to hide platform specific for the function that calls this.
|
||||
*/
|
||||
int our_sockerrno(void)
|
||||
{
|
||||
#ifdef USE_WINSOCK
|
||||
return (int)WSAGetLastError();
|
||||
#else
|
||||
return errno;
|
||||
#endif
|
||||
}
|
||||
|
||||
/* someone else must set this properly */
|
||||
extern const char *serverlogfile;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue