]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
tool_getparam: use UNITTEST not, ifdef
authorDaniel Stenberg <daniel@haxx.se>
Sat, 3 Jan 2026 16:28:25 +0000 (17:28 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 3 Jan 2026 23:09:12 +0000 (00:09 +0100)
Closes #20174

src/tool_getparam.c

index 57ee3ed9dceac68eb59dee04f2704adf810456a0..841c6fff8b9b73c3545c845e3042bf085208f752 100644 (file)
@@ -377,10 +377,11 @@ static const struct LongShort aliases[]= {
 /* Split the argument of -E to 'certname' and 'passphrase' separated by colon.
  * We allow ':' and '\' to be escaped by '\' so that we can use certificate
  * nicknames containing ':'. See <https://sourceforge.net/p/curl/bugs/1196/>
- * for details. */
-#ifndef UNITTESTS
-static
-#endif
+ * for details.
+ *
+ * Unit test 1394
+ */
+UNITTEST
 ParameterError parse_cert_parameter(const char *cert_parameter,
                                     char **certname,
                                     char **passphrase)