]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
build: drop stray `ifndef` guards for local/internal macros
authorViktor Szakats <commit@vsz.me>
Tue, 13 Jan 2026 18:44:56 +0000 (19:44 +0100)
committerViktor Szakats <commit@vsz.me>
Wed, 14 Jan 2026 11:53:14 +0000 (12:53 +0100)
For:
- lib/vtls: `MAX_PINNED_PUBKEY_SIZE`.
- src: `UNPRINTABLE_CHAR`.
- tests/server/tftpd: `PKTSIZE`.

Closes #20314

lib/vtls/vtls.h
src/tool_setup.h
tests/server/tftpd.c

index 112681ae57908699a101653661bc8361541c069f..273c6cce3fee68148160af69e190f3de7002e57b 100644 (file)
@@ -93,9 +93,7 @@ struct ssl_peer {
 CURLsslset Curl_init_sslset_nolock(curl_sslbackend id, const char *name,
                                    const curl_ssl_backend ***avail);
 
-#ifndef MAX_PINNED_PUBKEY_SIZE
 #define MAX_PINNED_PUBKEY_SIZE 1048576 /* 1 MiB */
-#endif
 
 curl_sslbackend Curl_ssl_backend(void);
 
index a0d9d2baf5c55e478cec31bb5e087a26cce795c3..6f9c0a004c6177bdf545e265a9d7937ecf4ae468 100644 (file)
@@ -59,10 +59,8 @@ extern FILE *tool_stderr;
 #define CURL_OS "unknown"
 #endif
 
-#ifndef UNPRINTABLE_CHAR
 /* define what to use for unprintable characters */
 #define UNPRINTABLE_CHAR '.'
-#endif
 
 #ifndef HAVE_STRDUP
 #include "tool_strdup.h"
index 37761fa4c70000ac12257e4450ee1f938e2f307e..2b556a932140f65a8b53290c6c9b6610385d2e6c 100644 (file)
@@ -108,9 +108,7 @@ struct tftphdr {
  *                      STRUCT DECLARATIONS AND DEFINES                      *
  *****************************************************************************/
 
-#ifndef PKTSIZE
 #define PKTSIZE (SEGSIZE + 4)  /* SEGSIZE defined in arpa/tftp.h */
-#endif
 
 struct testcase {
   char *buffer;   /* holds the file data to send to the client */