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:
@ -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) {
|
||||
|
Reference in New Issue
Block a user