diff --git a/lib/url.c b/lib/url.c
index 3930da5e24a859fa62f420a12e27e82dbf98faf1..b8e62838ef2cf1548109df4d515d2c011e1a98e3 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -142,12 +142,12 @@ void curl_free(void)
 {
 }
 
-void urlfree(struct UrlData *data, bool totally)
+void static urlfree(struct UrlData *data, bool totally)
 {
 #ifdef USE_SSLEAY
   if (data->use_ssl) {
     if(data->ssl) {
-      SSL_shutdown(data->ssl);
+      (void)SSL_shutdown(data->ssl);
       SSL_set_connect_state(data->ssl);
 
       SSL_free (data->ssl);