Mercurial > mplayer.hg
changeset 32885:34fb7af52b82
Make proxy and url parameter const in get_noauth_url and get_http_proxy_url.
author | cboesch |
---|---|
date | Sat, 26 Feb 2011 11:57:54 +0000 |
parents | 0d95f044c589 |
children | 5522b2153a0d |
files | stream/url.c stream/url.h |
diffstat | 2 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/stream/url.c Sat Feb 26 11:57:18 2011 +0000 +++ b/stream/url.c Sat Feb 26 11:57:54 2011 +0000 @@ -59,7 +59,7 @@ return res; } -static char *get_noauth_url(URL_t *url) +static char *get_noauth_url(const URL_t *url) { if (url->port) return mp_asprintf("%s://%s:%d%s", @@ -69,7 +69,7 @@ url->protocol, url->hostname, url->file); } -char *get_http_proxy_url(URL_t *proxy, const char *host_url) +char *get_http_proxy_url(const URL_t *proxy, const char *host_url) { if (proxy->username) return mp_asprintf("http_proxy://%s:%s@%s:%d/%s",
--- a/stream/url.h Sat Feb 26 11:57:18 2011 +0000 +++ b/stream/url.h Sat Feb 26 11:57:54 2011 +0000 @@ -38,7 +38,7 @@ URL_t *url_redirect(URL_t **url, const char *redir); -char *get_http_proxy_url(URL_t *proxy, const char *host_url); +char *get_http_proxy_url(const URL_t *proxy, const char *host_url); URL_t* url_new(const char* url); void url_free(URL_t* url);