]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
hostip.h: drop redundant `setjmp.h` include
authorViktor Szakats <commit@vsz.me>
Wed, 31 Dec 2025 15:20:32 +0000 (16:20 +0100)
committerViktor Szakats <commit@vsz.me>
Wed, 31 Dec 2025 16:00:57 +0000 (17:00 +0100)
Already included directly via `hostip.c`, and other header users do not
use it.

Also add comment about why `setjmp.h` is used.

Cherry-picked from #20106

Closes #20132

lib/hostip.c
lib/hostip.h
tests/server/tftpd.c

index 640010c94ac59b58d0e5ad6c4e61f6839311ced5..a0e1d40c81fdbfb227b736773c74c08fe86844f0 100644 (file)
@@ -40,7 +40,7 @@
 #include <inet.h>
 #endif
 
-#include <setjmp.h>
+#include <setjmp.h>  /* for sigjmp_buf, sigsetjmp() */
 #include <signal.h>
 
 #include "urldata.h"
index a40e24b88e982a965fb287576762087113feaa63..712b8eaf1b5e7d14c50db66f75fe97b6f6615943 100644 (file)
@@ -31,8 +31,6 @@
 #include "asyn.h"
 #include "httpsrr.h"
 
-#include <setjmp.h>
-
 #ifdef USE_HTTPSRR
 # include <stdint.h>
 #endif
index 8c40c40b34294ad0ce68d5b6dbea34ecadc59e1a..6902b39e7d6f73a00f8aed55e74bc2dde5192990 100644 (file)
@@ -61,7 +61,7 @@
 #include <sys/filio.h>  /* FIONREAD on Solaris 7 */
 #endif
 
-#include <setjmp.h>
+#include <setjmp.h>  /* for sigjmp_buf, sigsetjmp() */
 
 #ifdef HAVE_PWD_H
 #include <pwd.h>