Make some functions static
authorDavid Woodhouse <David.Woodhouse@intel.com>
Fri, 16 Apr 2010 09:50:23 +0000 (10:50 +0100)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Fri, 16 Apr 2010 09:50:23 +0000 (10:50 +0100)
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
http.c
ssl.c

diff --git a/http.c b/http.c
index 6691a43..58e03e0 100644 (file)
--- a/http.c
+++ b/http.c
@@ -51,7 +51,8 @@ static int proxy_write(int fd, unsigned char *buf, size_t len);
  * provided by their caller.
  */
 
-int http_add_cookie(struct openconnect_info *vpninfo, const char *option, const char *value)
+static int http_add_cookie(struct openconnect_info *vpninfo,
+                          const char *option, const char *value)
 {
        struct vpn_option *new, **this;
 
diff --git a/ssl.c b/ssl.c
index 9a4c5e6..5a03fc4 100644 (file)
--- a/ssl.c
+++ b/ssl.c
@@ -452,8 +452,8 @@ static int verify_peer(struct openconnect_info *vpninfo, SSL *https_ssl)
        return 0;
 }
 
-void workaround_openssl_certchain_bug(struct openconnect_info *vpninfo,
-                                     SSL *ssl)
+static void workaround_openssl_certchain_bug(struct openconnect_info *vpninfo,
+                                            SSL *ssl)
 {
        /* OpenSSL has problems with certificate chains -- if there are
           multiple certs with the same name, it doesn't necessarily