# HG changeset patch # User reimar # Date 1352551561 0 # Node ID 4dc2b1261d29893b1c60bfd6c9ae2434f95691b2 # Parent 7505733df2b46b8f23f2887df48bc0d624d53036 check4proxies does not modify input URL, so mark it const. diff -r 7505733df2b4 -r 4dc2b1261d29 stream/network.c --- 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 ); diff -r 7505733df2b4 -r 4dc2b1261d29 stream/network.h --- 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);