From 7663e555269432b1a862d2e89b019d2a75b43525 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Sun, 28 Jul 2019 11:38:40 +0100 Subject: [PATCH] Make proxy_for_destination() static. It's never used outside proxy.c, so there's no need to expose its declaration in proxy.h. --- network.h | 2 -- proxy.c | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/network.h b/network.h index b86c054a..6bffcec4 100644 --- a/network.h +++ b/network.h @@ -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()) */ diff --git a/proxy.c b/proxy.c index c3bea773..d99a1d12 100644 --- a/proxy.c +++ b/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];