tidy-up: drop unused CURL_INADDR_NONE macro and in_addr_t type

Closes #16318
This commit is contained in:
Viktor Szakats 2025-02-13 12:05:30 +01:00
parent 4aec6cdfd3
commit 90b72607fa
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201
8 changed files with 0 additions and 115 deletions

View file

@ -234,9 +234,6 @@
/* Define to empty if `const' does not conform to ANSI C. */
#undef const
/* type to use in place of in_addr_t if not defined */
#define in_addr_t unsigned long
/* Define to `unsigned' if <sys/types.h> does not define. */
#undef size_t

View file

@ -244,9 +244,6 @@
/* TYPEDEF REPLACEMENTS */
/* ---------------------------------------------------------------- */
/* Define if in_addr_t is not an available 'typedefed' type. */
#define in_addr_t unsigned long
/* Define if ssize_t is not an available 'typedefed' type. */
#ifndef _SSIZE_T_DEFINED
# ifdef __MINGW32__

View file

@ -797,9 +797,6 @@ ${SIZEOF_TIME_T_CODE}
/* Define to empty if `const' does not conform to ANSI C. */
#cmakedefine const ${const}
/* Type to use in place of in_addr_t when system does not provide it. */
#cmakedefine in_addr_t ${in_addr_t}
/* Define to `unsigned int' if <sys/types.h> does not define. */
#cmakedefine size_t ${size_t}

View file

@ -195,12 +195,6 @@ Curl_cache_addr(struct Curl_easy *data, struct Curl_addrinfo *addr,
const char *hostname, size_t hostlen, int port,
bool permanent);
#ifndef INADDR_NONE
#define CURL_INADDR_NONE (in_addr_t) ~0
#else
#define CURL_INADDR_NONE INADDR_NONE
#endif
/*
* Function provided by the resolver backend to set DNS servers to use.
*/