1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-01 11:32:48 -05:00

Add missing 'static' on file-internal declarations.

sk_startup and sk_nextaddr are entirely internal to winnet.c; nearly
all of import.c and minibidi.c's internal routines should have been
static and weren't; {read,write}_utf8 are internal to charset/utf8.c
(and didn't even need separate declarations at all); do_sftp_cleanup
is internal to psftp.c, and get_listitemheight to gtkdlg.c.

While I was editing those prototypes anyway, I've also added missing
'const' to the 'char *' passphrase parameters in import,c.
This commit is contained in:
Simon Tatham
2018-11-03 08:25:28 +00:00
parent c089827ea0
commit 91d16881ab
6 changed files with 64 additions and 69 deletions

View File

@ -206,7 +206,7 @@ static HMODULE winsock2_module = NULL;
static HMODULE wship6_module = NULL;
#endif
bool sk_startup(int hi, int lo)
static bool sk_startup(int hi, int lo)
{
WORD winsock_ver;
@ -590,7 +590,7 @@ SockAddr *sk_namedpipe_addr(const char *pipename)
return ret;
}
bool sk_nextaddr(SockAddr *addr, SockAddrStep *step)
static bool sk_nextaddr(SockAddr *addr, SockAddrStep *step)
{
#ifndef NO_IPV6
if (step->ai) {