]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
examples: delete unused includes
authorViktor Szakats <commit@vsz.me>
Fri, 24 May 2024 17:52:05 +0000 (19:52 +0200)
committerViktor Szakats <commit@vsz.me>
Mon, 27 May 2024 22:27:04 +0000 (00:27 +0200)
Delete a bunch of unnecessary-looking headers from some examples. This
is known to be tricky on AIX (perhaps also in other less-tested envs).

Let me know if any of this looks incorrect or outright fails on some
systems.

Follow-up to d4b85890555388bec212b75f47a5c1a48705b156 #13771
Closes #13785

15 files changed:
docs/examples/10-at-a-time.c
docs/examples/cookie_interface.c
docs/examples/http2-download.c
docs/examples/http2-pushinmemory.c
docs/examples/http2-serverpush.c
docs/examples/multi-app.c
docs/examples/multi-debugcallback.c
docs/examples/multi-double.c
docs/examples/multi-formadd.c
docs/examples/multi-post.c
docs/examples/multi-single.c
docs/examples/persistent.c
docs/examples/sepheaders.c
docs/examples/url2file.c
docs/examples/xmlstream.c

index 1221126e3680ea45f11d9ba847feaee31e33d942..38a0f24ac62f28455059dbee9cb827a410cad2d2 100644 (file)
  * </DESC>
  */
 
-#include <errno.h>
 #include <stdlib.h>
 #include <string.h>
-#ifndef _WIN32
-#  include <unistd.h>
-#endif
 #include <curl/curl.h>
 
 static const char *urls[] = {
index 0cc47cff7fa3f2b225ee1cbfb3380aef5dd301dc..2b11b4868742fe3c034cd1107b4938925ee48986 100644 (file)
@@ -29,7 +29,6 @@
 #include <stdio.h>
 #include <string.h>
 #include <stdlib.h>
-#include <errno.h>
 #include <time.h>
 
 #include <curl/curl.h>
index 3889b0d8a4354c815a78640c9b3b93ba3fee288f..952b2cd4c1aa18487f5cfa8bb6721eb0d46d556a 100644 (file)
 #include <string.h>
 #include <errno.h>
 
-/* somewhat unix-specific */
-#ifndef _WIN32
-#include <sys/time.h>
-#include <unistd.h>
-#endif
-
 /* curl stuff */
 #include <curl/curl.h>
 #include <curl/mprintf.h>
index cc1422d5a04151ec924a706f5515d6a082145805..53c368e0127b199652f5de0e310afbad99f2d28d 100644 (file)
 #include <stdlib.h>
 #include <string.h>
 
-/* somewhat unix-specific */
-#ifndef _WIN32
-#include <sys/time.h>
-#include <unistd.h>
-#endif
-
 /* curl stuff */
 #include <curl/curl.h>
 
index a03ff4efbb3ebe301978f8ebac2a7296d2ed03ef..29e266306e532eda1d99e6dd18fd595c86880ffc 100644 (file)
 #include <stdlib.h>
 #include <string.h>
 
-/* somewhat unix-specific */
-#ifndef _WIN32
-#include <sys/time.h>
-#include <unistd.h>
-#endif
-
 /* curl stuff */
 #include <curl/curl.h>
 
index 95c8981ac59f1eb13b2b1aef70580f51cfbff15d..87a23fb27bc720a8796f631da9c2839ab5d41763 100644 (file)
 #include <stdio.h>
 #include <string.h>
 
-/* somewhat unix-specific */
-#ifndef _WIN32
-#include <sys/time.h>
-#include <unistd.h>
-#endif
-
 /* curl stuff */
 #include <curl/curl.h>
 
index 68f30e9b03d65addd1c07cad1fc8364376eafb49..a5be174da167c161463015aafae8fc6b209b9202 100644 (file)
 #include <stdio.h>
 #include <string.h>
 
-/* somewhat unix-specific */
-#ifndef _WIN32
-#include <sys/time.h>
-#include <unistd.h>
-#endif
-
 /* curl stuff */
 #include <curl/curl.h>
 
index b59b665fd4bc39583f7fc9b41e82212293b09ec3..99bd736a9ce3ccc7271d7ed658d1a91ee9cfa49b 100644 (file)
 #include <stdio.h>
 #include <string.h>
 
-/* somewhat unix-specific */
-#ifndef _WIN32
-#include <sys/time.h>
-#include <unistd.h>
-#endif
-
 /* curl stuff */
 #include <curl/curl.h>
 
index 1f2d6d6d27d246ab580b604d1dff142719b4d0ef..e42b4806c7073a73055cd4689f72c3dbc7c97a5a 100644 (file)
@@ -33,9 +33,6 @@
 
 #include <stdio.h>
 #include <string.h>
-#ifndef _WIN32
-#include <sys/time.h>
-#endif
 
 #include <curl/curl.h>
 
index 886f3d2600f340031bfaabd42abd2a2d8b9eba1b..84af48f4bfb55540ead417180fef818f3551970c 100644 (file)
@@ -28,9 +28,6 @@
 
 #include <stdio.h>
 #include <string.h>
-#ifndef _WIN32
-#include <sys/time.h>
-#endif
 
 #include <curl/curl.h>
 
index 79841bf89ad83c9e9cb50ac1f45f98660a20d537..0ead96f4871fdbd1c0fe44fdc963ffb2310831dd 100644 (file)
 #include <stdio.h>
 #include <string.h>
 
-/* somewhat unix-specific */
-#ifndef _WIN32
-#include <sys/time.h>
-#include <unistd.h>
-#endif
-
 /* curl stuff */
 #include <curl/curl.h>
 
index 86488666cd188e6ded6405f30371134494adccbe..be5e8c33e667e7b3529c052318a092dbf6e291ea 100644 (file)
@@ -26,9 +26,6 @@
  * </DESC>
  */
 #include <stdio.h>
-#ifndef _WIN32
-#include <unistd.h>
-#endif
 
 #include <curl/curl.h>
 
index 8679b135195c604c7a367807ac753fe9a53d1965..31a320124168a001e4e5eee6cdce1914c772f705 100644 (file)
@@ -27,9 +27,6 @@
  */
 #include <stdio.h>
 #include <stdlib.h>
-#ifndef _WIN32
-#include <unistd.h>
-#endif
 
 #include <curl/curl.h>
 
index 5bfe26fe067c679d79cc4e54c6e85d8554aef811..9ed7da5a84a637c105eeb7e072b32e7bbc97a019 100644 (file)
@@ -27,9 +27,6 @@
  */
 #include <stdio.h>
 #include <stdlib.h>
-#ifndef _WIN32
-#include <unistd.h>
-#endif
 
 #include <curl/curl.h>
 
index 76a8e48cce91163f37f2c8a7a29d12a3154ea6cc..d779e6e7cfacef966e059f2aa1f5c26673839ce4 100644 (file)
@@ -36,7 +36,6 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-#include <assert.h>
 
 #include <expat.h>
 #include <curl/curl.h>