mirror of
https://github.com/curl/curl.git
synced 2026-08-03 20:00:30 +03:00
tidy-up: miscellaneous
- tool_bname: scope an include. - `endif` comments. - Markdown fixes. - comment tidy-ups. - whitespace, newlines, indent. Closes #20309
This commit is contained in:
parent
62ba3604dc
commit
ac6264366f
98 changed files with 829 additions and 863 deletions
|
|
@ -58,11 +58,11 @@ char *getpass_r(const char *prompt, char *buffer, size_t buflen)
|
|||
long sts;
|
||||
short chan;
|
||||
|
||||
/* iosbdef.h was not in VAX V7.2 or CC 6.4 */
|
||||
/* iosbdef.h was not in VAX V7.2 or CC 6.4 */
|
||||
struct _isb {
|
||||
short int iosb$w_status; /* status */
|
||||
short int iosb$w_status; /* status */
|
||||
short int iosb$w_bcnt; /* byte count */
|
||||
int unused; /* unused */
|
||||
int unused; /* unused */
|
||||
} iosb;
|
||||
|
||||
$DESCRIPTOR(ttdesc, "TT");
|
||||
|
|
@ -86,7 +86,6 @@ char *getpass_r(const char *prompt, char *buffer, size_t buflen)
|
|||
#endif /* __VMS */
|
||||
|
||||
#ifdef _WIN32
|
||||
|
||||
char *getpass_r(const char *prompt, char *buffer, size_t buflen)
|
||||
{
|
||||
size_t i;
|
||||
|
|
@ -100,7 +99,7 @@ char *getpass_r(const char *prompt, char *buffer, size_t buflen)
|
|||
}
|
||||
else if(buffer[i] == '\b')
|
||||
/* remove this letter and if this is not the first key, remove the
|
||||
previous one as well */
|
||||
previous one as well */
|
||||
i = i - (i >= 1 ? 2 : 1);
|
||||
}
|
||||
/* since echo is disabled, print a newline */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue