core: fix unused but set variable
[project/uclient.git] / uclient.c
index 73fe662..3b3864f 100644 (file)
--- a/uclient.c
+++ b/uclient.c
@@ -46,7 +46,7 @@ char *uclient_get_addr(char *dest, int *port, union uclient_addr *a)
        return dest;
 }
 
-struct uclient_url __hidden *
+static struct uclient_url *
 __uclient_get_url(const struct uclient_backend *backend,
                  const char *host, int host_len,
                  const char *location, const char *auth_str)
@@ -200,7 +200,6 @@ int uclient_set_proxy_url(struct uclient *cl, const char *url_str, const char *a
 {
        const struct uclient_backend *backend = cl->backend;
        struct uclient_url *url;
-       const char *location;
        int host_len;
        char *next, *host;
 
@@ -212,7 +211,7 @@ int uclient_set_proxy_url(struct uclient *cl, const char *url_str, const char *a
                return -1;
 
        host = next + 3;
-       location = uclient_split_host(host, &host_len);
+       uclient_split_host(host, &host_len);
 
        url = __uclient_get_url(NULL, host, host_len, url_str, auth_str);
        if (!url)