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:
parent
0901590791
commit
7663e55526
@ -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()) */
|
||||
|
4
proxy.c
4
proxy.c
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user