[MPlayer-cvslog] r32972 - in trunk/stream: url.c url.h

cboesch subversion at mplayerhq.hu
Sat Feb 26 12:57:54 CET 2011


Author: cboesch
Date: Sat Feb 26 12:57:54 2011
New Revision: 32972

Log:
Make proxy and url parameter const in get_noauth_url and get_http_proxy_url.

Modified:
   trunk/stream/url.c
   trunk/stream/url.h

Modified: trunk/stream/url.c
==============================================================================
--- trunk/stream/url.c	Sat Feb 26 12:57:18 2011	(r32971)
+++ trunk/stream/url.c	Sat Feb 26 12:57:54 2011	(r32972)
@@ -59,7 +59,7 @@ URL_t *url_redirect(URL_t **url, const c
   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 @@ static char *get_noauth_url(URL_t *url)
                            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",

Modified: trunk/stream/url.h
==============================================================================
--- trunk/stream/url.h	Sat Feb 26 12:57:18 2011	(r32971)
+++ trunk/stream/url.h	Sat Feb 26 12:57:54 2011	(r32972)
@@ -38,7 +38,7 @@ typedef struct {
 
 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);


More information about the MPlayer-cvslog mailing list