]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
lib2082: drop `typedef struct`
authorViktor Szakats <commit@vsz.me>
Fri, 27 Jun 2025 09:13:13 +0000 (11:13 +0200)
committerViktor Szakats <commit@vsz.me>
Fri, 27 Jun 2025 12:16:30 +0000 (14:16 +0200)
To not need the checksrc exception `disable TYPEDEFSTRUCT`.

Follow-up to a517378de58358a85b7cfe9efecb56051268f629 #7477

Closes #17763

tests/libtest/lib2082.c

index ca73a4dbd8bb7c6f987876ed30ed9ebfb3afe248..f497de7a70c00a1dc4c403a77da56e0665bedada 100644 (file)
  ***************************************************************************/
 #include "first.h"
 
-typedef struct prcs {
+struct prcs {
   int prereq_retcode;
   int ipv6;
-} PRCS;
+};
 
 static int prereq_callback(void *clientp,
                            char *conn_primary_ip,
@@ -34,7 +34,7 @@ static int prereq_callback(void *clientp,
                            int conn_primary_port,
                            int conn_local_port)
 {
-  PRCS *prereq_cb = (PRCS *)clientp;
+  struct prcs *prereq_cb = (struct prcs *)clientp;
 
   if(prereq_cb->ipv6) {
     curl_mprintf("Connected to [%s]\n", conn_primary_ip);
@@ -53,7 +53,7 @@ static int prereq_callback(void *clientp,
 
 static CURLcode test_lib2082(char *URL)  /* libprereq */
 {
-  PRCS prereq_cb;
+  struct prcs prereq_cb;
   CURLcode ret = CURLE_OK;
   CURL *curl = NULL;