h2_upgrade_extreme: rename func to pacify typos tool

This commit is contained in:
Viktor Szakats 2025-07-12 22:52:24 +02:00
parent 170e2ab11d
commit 73bbf1a7eb
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201
2 changed files with 4 additions and 3 deletions

View file

@ -4,7 +4,7 @@
[default]
extend-ignore-identifiers-re = [
"(ba|BA|FU|Iy|ND|OT|pn|PN|ue|UE)",
"(ba|BA|FU|Iy|ND|OT|pn|PN|UE)",
"(ben|CNA|ECT|EDE|Jod|kno|MEK|Ned|noo|nto|ser|Typ|URE)",
"(admi|alue|CLEA|clen|GOST|HELO|helo|htpt|PASE)",
"(HEADE|numer|optin|stati)",

View file

@ -23,7 +23,8 @@
***************************************************************************/
#include "first.h"
static size_t write_h2ue_cb(char *ptr, size_t size, size_t nmemb, void *opaque)
static size_t write_h2_upg_extreme_cb(char *ptr, size_t size, size_t nmemb,
void *opaque)
{
(void)ptr;
(void)opaque;
@ -69,7 +70,7 @@ static int test_h2_upgrade_extreme(int argc, char *argv[])
curl_easy_setopt(easy, CURLOPT_AUTOREFERER, 1L);
curl_easy_setopt(easy, CURLOPT_FAILONERROR, 1L);
curl_easy_setopt(easy, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_2_0);
curl_easy_setopt(easy, CURLOPT_WRITEFUNCTION, write_h2ue_cb);
curl_easy_setopt(easy, CURLOPT_WRITEFUNCTION, write_h2_upg_extreme_cb);
curl_easy_setopt(easy, CURLOPT_WRITEDATA, NULL);
curl_easy_setopt(easy, CURLOPT_HTTPGET, 1L);
curl_msnprintf(range, sizeof(range),