1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-09 09:27:59 +00:00

Make proxy_for_destination() static.

It's never used outside proxy.c, so there's no need to expose its
declaration in proxy.h.
This commit is contained in:
Simon Tatham 2019-07-28 11:38:40 +01:00
parent 0901590791
commit 7663e55526
2 changed files with 2 additions and 4 deletions

View File

@ -107,8 +107,6 @@ Socket *new_listener(const char *srcaddr, int port, Plug *plug,
SockAddr *name_lookup(const char *host, int port, char **canonicalname,
Conf *conf, int addressfamily, LogContext *logctx,
const char *lookup_reason_for_logging);
bool proxy_for_destination (SockAddr *addr, const char *hostname, int port,
Conf *conf);
/* platform-dependent callback from new_connection() */
/* (same caveat about addr as new_connection()) */

View File

@ -242,8 +242,8 @@ static int plug_proxy_accepting(Plug *p,
* This function can accept a NULL pointer as `addr', in which case
* it will only check the host name.
*/
bool proxy_for_destination (SockAddr *addr, const char *hostname,
int port, Conf *conf)
static bool proxy_for_destination(SockAddr *addr, const char *hostname,
int port, Conf *conf)
{
int s = 0, e = 0;
char hostip[64];