mirror of
https://github.com/curl/curl.git
synced 2026-08-24 20:43:47 +03:00
tidy-up: miscellaneous
- curl_ntlm_core, smtp, schannel: fix comments.
- curl_setup.h: fix to undef before define.
- tool_doswin, server/sockfilt: reduce variables scopes.
- tool_doswin: drop an interim variable.
- windows: replace `SOCKET_ERROR` with `0` to align with rest of code.
- libssh2: rename variable to align with rest of code.
- gtls, unit1398: use `#if 0`.
- curl_trc.h, curlx/inet_ntop.h: add missing parentheses in macro
expressions.
- ldap.c: set empty macro to `do {} while(0)`.
- examples/crawler: rename a non-CURLcode `result` variable.
- CURLINFO_TLS_SESSION: drop stray colon.
- add `const` to casts where missing.
- drop unnecessary parentheses.
- fix indent.
- quote style.
- comment style.
- whitespace, newlines, fold/unfold.
Closes #20554
This commit is contained in:
parent
2a92c39a21
commit
61df5f466c
88 changed files with 503 additions and 503 deletions
|
|
@ -381,7 +381,7 @@ sub sshversioninfo {
|
|||
if($tmpstr =~ /OpenSSH[_-](\d+)\.(\d+)(\.(\d+))*/i) {
|
||||
$major = $1;
|
||||
$minor = $2;
|
||||
$patch = $4?$4:0;
|
||||
$patch = $4 ? $4 : 0;
|
||||
$sshid = 'OpenSSH';
|
||||
$versnum = (100*$major) + (10*$minor) + $patch;
|
||||
$versstr = "$sshid $major.$minor.$patch";
|
||||
|
|
@ -391,7 +391,7 @@ sub sshversioninfo {
|
|||
if($tmpstr =~ /OpenSSH[_-]for[_-]Windows[_-](\d+)\.(\d+)(\.(\d+))*/i) {
|
||||
$major = $1;
|
||||
$minor = $2;
|
||||
$patch = $4?$4:0;
|
||||
$patch = $4 ? $4 : 0;
|
||||
$sshid = 'OpenSSH-Windows';
|
||||
$versnum = (100*$major) + (10*$minor) + $patch;
|
||||
$versstr = "$sshid $major.$minor.$patch";
|
||||
|
|
@ -401,7 +401,7 @@ sub sshversioninfo {
|
|||
if($tmpstr =~ /Sun[_-]SSH[_-](\d+)\.(\d+)(\.(\d+))*/i) {
|
||||
$major = $1;
|
||||
$minor = $2;
|
||||
$patch = $4?$4:0;
|
||||
$patch = $4 ? $4 : 0;
|
||||
$sshid = 'SunSSH';
|
||||
$versnum = (100*$major) + (10*$minor) + $patch;
|
||||
$versstr = "$sshid $major.$minor.$patch";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue