summaryrefslogtreecommitdiff
path: root/uclient.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-03-26 20:55:18 +0100
committerFelix Fietkau <nbd@openwrt.org>2014-03-26 20:55:18 +0100
commit4a3a8cb176aa932ed4bc88354fad76d91764c65f (patch)
treef58b974077c58e25dc88f4c47abd9dfb953130c6 /uclient.c
parent299b1af9c051248771537980ee2d16c29c61376d (diff)
downloaduclient-4a3a8cb176aa932ed4bc88354fad76d91764c65f.tar.gz
pass auth_str to uclient_new()
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Diffstat (limited to 'uclient.c')
-rw-r--r--uclient.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/uclient.c b/uclient.c
index b020ad0..2e3d3ae 100644
--- a/uclient.c
+++ b/uclient.c
@@ -112,12 +112,12 @@ free:
return NULL;
}
-struct uclient *uclient_new(const char *url_str, const struct uclient_cb *cb)
+struct uclient *uclient_new(const char *url_str, const char *auth_str, const struct uclient_cb *cb)
{
struct uclient *cl;
struct uclient_url *url;
- url = uclient_get_url(url_str, NULL);
+ url = uclient_get_url(url_str, auth_str);
if (!url)
return NULL;