[MPlayer-cvslog] r35390 - in trunk/stream: network.c network.h

reimar subversion at mplayerhq.hu
Sat Nov 10 13:46:01 CET 2012


Author: reimar
Date: Sat Nov 10 13:46:01 2012
New Revision: 35390

Log:
check4proxies does not modify input URL, so mark it const.

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

Modified: trunk/stream/network.c
==============================================================================
--- trunk/stream/network.c	Sat Nov 10 13:42:43 2012	(r35389)
+++ trunk/stream/network.c	Sat Nov 10 13:46:01 2012	(r35390)
@@ -131,7 +131,7 @@ streaming_ctrl_free( streaming_ctrl_t *s
 }
 
 URL_t*
-check4proxies( URL_t *url ) {
+check4proxies( const URL_t *url ) {
 	URL_t *url_out = NULL;
 	if( url==NULL ) return NULL;
 	url_out = url_new( url->url );

Modified: trunk/stream/network.h
==============================================================================
--- trunk/stream/network.h	Sat Nov 10 13:42:43 2012	(r35389)
+++ trunk/stream/network.h	Sat Nov 10 13:46:01 2012	(r35390)
@@ -83,7 +83,7 @@ int http_send_request(URL_t *url, off_t 
 HTTP_header_t *http_read_response(int fd);
 
 int http_authenticate(HTTP_header_t *http_hdr, URL_t *url, int *auth_retry);
-URL_t* check4proxies(URL_t *url);
+URL_t* check4proxies(const URL_t *url);
 
 void fixup_network_stream_cache(stream_t *stream);
 int http_seek(stream_t *stream, off_t pos);


More information about the MPlayer-cvslog mailing list