changeset 35296:4dc2b1261d29

check4proxies does not modify input URL, so mark it const.
author reimar
date Sat, 10 Nov 2012 12:46:01 +0000
parents 7505733df2b4
children aeb77e5b1942
files stream/network.c stream/network.h
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/stream/network.c	Sat Nov 10 12:42:43 2012 +0000
+++ b/stream/network.c	Sat Nov 10 12:46:01 2012 +0000
@@ -131,7 +131,7 @@
 }
 
 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 );
--- a/stream/network.h	Sat Nov 10 12:42:43 2012 +0000
+++ b/stream/network.h	Sat Nov 10 12:46:01 2012 +0000
@@ -83,7 +83,7 @@
 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);