From: Viktor Szakats Date: Mon, 26 Aug 2024 11:25:34 +0000 (+0200) Subject: tidy-up: indent, whitespace, comment in sources X-Git-Tag: curl-8_11_0~374 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1064dfa86a87187453d90691583ed5e017093719;p=thirdparty%2Fcurl.git tidy-up: indent, whitespace, comment in sources Cherry-picked from #14692 Closes #14995 --- diff --git a/lib/curl_config.h.cmake b/lib/curl_config.h.cmake index 39609bc38a..f247272a8a 100644 --- a/lib/curl_config.h.cmake +++ b/lib/curl_config.h.cmake @@ -21,7 +21,6 @@ * SPDX-License-Identifier: curl * ***************************************************************************/ -/* lib/curl_config.h.in. Generated somehow by cmake. */ /* Location of default ca bundle */ #cmakedefine CURL_CA_BUNDLE "${CURL_CA_BUNDLE}" diff --git a/lib/curlx.h b/lib/curlx.h index 0391d7cd7f..f0e4e6470b 100644 --- a/lib/curlx.h +++ b/lib/curlx.h @@ -66,13 +66,4 @@ #include "version_win32.h" /* "version_win32.h" provides curlx_verify_windows_version() */ -/* Now setup curlx_ * names for the functions that are to become curlx_ and - be removed from a future libcurl official API: - curlx_getenv - curlx_mprintf (and its variations) - curlx_strcasecompare - curlx_strncasecompare - -*/ - #endif /* HEADER_CURL_CURLX_H */ diff --git a/lib/vquic/curl_msh3.c b/lib/vquic/curl_msh3.c index dd13b4251a..e57a234ad0 100644 --- a/lib/vquic/curl_msh3.c +++ b/lib/vquic/curl_msh3.c @@ -71,7 +71,7 @@ pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); \ pthread_mutex_init(lock, &attr); \ pthread_mutexattr_destroy(&attr); \ -}while(0) +} while(0) #define msh3_lock_uninitialize(lock) pthread_mutex_destroy(lock) #define msh3_lock_acquire(lock) pthread_mutex_lock(lock) #define msh3_lock_release(lock) pthread_mutex_unlock(lock) diff --git a/lib/vtls/openssl.c b/lib/vtls/openssl.c index d9be33b865..595c27285d 100644 --- a/lib/vtls/openssl.c +++ b/lib/vtls/openssl.c @@ -2924,7 +2924,7 @@ CURLcode Curl_ossl_add_session(struct Curl_cfilter *cf, Curl_ssl_sessionid_lock(data); result = Curl_ssl_set_sessionid(cf, data, peer, der_session_buf, - der_session_size, ossl_session_free); + der_session_size, ossl_session_free); Curl_ssl_sessionid_unlock(data); } @@ -4002,8 +4002,8 @@ CURLcode Curl_ossl_ctx_init(struct ossl_ctx *octx, octx->reused_session = TRUE; } else { - Curl_ssl_sessionid_unlock(data); - return CURLE_SSL_CONNECT_ERROR; + Curl_ssl_sessionid_unlock(data); + return CURLE_SSL_CONNECT_ERROR; } } Curl_ssl_sessionid_unlock(data); diff --git a/m4/curl-override.m4 b/m4/curl-override.m4 index b4a8df9bb6..bc3f669c3a 100644 --- a/m4/curl-override.m4 +++ b/m4/curl-override.m4 @@ -48,7 +48,7 @@ dnl a c89 compiler and does not support K&R. m4_define([AC_LANG_PROGRAM(C)], [$1 -int main (void) +int main(void) { $2 ; diff --git a/src/tool_operate.c b/src/tool_operate.c index b9b7bfdc38..275f2584b8 100644 --- a/src/tool_operate.c +++ b/src/tool_operate.c @@ -377,7 +377,7 @@ static CURLcode pre_transfer(struct GlobalConfig *global, break; default: per->infd = open(per->uploadfile, O_RDONLY | O_BINARY, - "rfm=stmlf", "ctx=stm"); + "rfm=stmlf", "ctx=stm"); } } if(per->infd == -1) diff --git a/tests/libtest/lib3207.c b/tests/libtest/lib3207.c index 7904a8be35..f43f7d5b10 100644 --- a/tests/libtest/lib3207.c +++ b/tests/libtest/lib3207.c @@ -214,11 +214,11 @@ CURLcode test(char *URL) res = ctx[i].result; } else { - struct curl_slist *item = ctx[i].contents; - while(item) { - printf("%s", item->data); - item = item->next; - } + struct curl_slist *item = ctx[i].contents; + while(item) { + printf("%s", item->data); + item = item->next; + } } curl_slist_free_all(ctx[i].contents); } diff --git a/tests/sshserver.pl b/tests/sshserver.pl index 86db0eb0ce..c8c4a3330c 100755 --- a/tests/sshserver.pl +++ b/tests/sshserver.pl @@ -1121,6 +1121,7 @@ if($error) { exit 1; } + #*************************************************************************** # Initialize client sftp config with options actually supported. #