]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
build: drop duplicate C includes
authorViktor Szakats <commit@vsz.me>
Tue, 13 Jan 2026 22:44:10 +0000 (23:44 +0100)
committerViktor Szakats <commit@vsz.me>
Tue, 13 Jan 2026 23:55:05 +0000 (00:55 +0100)
- `stdlib.h` and `string.h` is included via `curl_setup_once.h`,
  allowing to drop from `tests/server` sources and `tool_doswin.c`.

- `stdlib.h` is also included via `setup-vms.h` (earlier than above),
  allowing to drop it from `curl_addrinfo.h` on VMS.

Closes #20303

lib/curl_addrinfo.h
src/tool_doswin.c
tests/server/first.c
tests/server/mqttd.c
tests/server/socksd.c

index ca80f3a45df89ba17f5c7edacc51987af285950c..dedf1a6dbca5f69854633e7d37575a270f5cbdad 100644 (file)
@@ -38,7 +38,6 @@
 #ifdef __VMS
 #  include <in.h>
 #  include <inet.h>
-#  include <stdlib.h>
 #endif
 
 /*
index eca387f7db6fac291e8650a19fc4d54a2cd4bb45..9e80d352fb44ea8d35cd7a3b5806b40cf1376a78 100644 (file)
@@ -30,7 +30,6 @@
 #endif
 
 #ifdef _WIN32
-#  include <stdlib.h>
 #  include <tlhelp32.h>
 #endif
 
index 60a1404bbb1d20ec52547e274359b54b6362a324..a25de1759ac672de3bbd835121c4ed6095e69910 100644 (file)
@@ -24,7 +24,6 @@
 #include "first.h"
 
 #include <stdio.h>
-#include <string.h>
 
 int main(int argc, char **argv)
 {
index 784bab4c3e260eab775197f206b0138f27952b18..70bc4a85a5af121dce80ddeeb53e334629202aa1 100644 (file)
@@ -23,9 +23,6 @@
  ***************************************************************************/
 #include "first.h"
 
-#include <stdlib.h>
-#include <string.h>
-
 /* Function
  *
  * Accepts a TCP connection on a custom port (IPv4 or IPv6).  Speaks MQTT.
index 91f8c119d9c717ff7d341b3ca5f82309dfe54baa..b9ab49436e56f286ca06146d40f118c61a4da386 100644 (file)
@@ -23,8 +23,6 @@
  ***************************************************************************/
 #include "first.h"
 
-#include <stdlib.h>
-
 /* Function
  *
  * Accepts a TCP connection on a custom port (IPv4 or IPv6). Connects to a