From 3f36e1e502105deb513fadac02d60b13ac68b16f Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Fri, 27 Jun 2025 11:13:13 +0200 Subject: [PATCH] lib2082: drop `typedef struct` To not need the checksrc exception `disable TYPEDEFSTRUCT`. Follow-up to a517378de58358a85b7cfe9efecb56051268f629 #7477 Closes #17763 --- tests/libtest/lib2082.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/libtest/lib2082.c b/tests/libtest/lib2082.c index ca73a4dbd8..f497de7a70 100644 --- a/tests/libtest/lib2082.c +++ b/tests/libtest/lib2082.c @@ -23,10 +23,10 @@ ***************************************************************************/ #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; -- 2.47.2