[vlc-commits] httpd: missing const

Rémi Denis-Courmont git at videolan.org
Sun Jul 23 16:54:20 CEST 2017


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Jul 23 17:18:57 2017 +0300| [2131d5cb948bfdf57a898853c99f3a0f30b1dd21] | committer: Rémi Denis-Courmont

httpd: missing const

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2131d5cb948bfdf57a898853c99f3a0f30b1dd21
---

 include/vlc_httpd.h | 2 +-
 src/network/httpd.c | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/include/vlc_httpd.h b/include/vlc_httpd.h
index dc3b96b977..29b8229e7b 100644
--- a/include/vlc_httpd.h
+++ b/include/vlc_httpd.h
@@ -142,7 +142,7 @@ VLC_API httpd_stream_t * httpd_StreamNew( httpd_host_t *, const char *psz_url, c
 VLC_API void httpd_StreamDelete( httpd_stream_t * );
 VLC_API int httpd_StreamHeader( httpd_stream_t *, uint8_t *p_data, int i_data );
 VLC_API int httpd_StreamSend( httpd_stream_t *, const block_t *p_block );
-VLC_API int httpd_StreamSetHTTPHeaders(httpd_stream_t *, httpd_header *, size_t);
+VLC_API int httpd_StreamSetHTTPHeaders(httpd_stream_t *, const httpd_header *, size_t);
 
 /* Msg functions facilities */
 VLC_API void httpd_MsgAdd( httpd_message_t *, const char *psz_name, const char *psz_value, ... ) VLC_FORMAT( 3, 4 );
diff --git a/src/network/httpd.c b/src/network/httpd.c
index 7e0cee164a..9e911b4d66 100644
--- a/src/network/httpd.c
+++ b/src/network/httpd.c
@@ -2052,7 +2052,8 @@ static void* httpd_HostThread(void *data)
     return NULL;
 }
 
-int httpd_StreamSetHTTPHeaders(httpd_stream_t * p_stream, httpd_header * p_headers, size_t i_headers)
+int httpd_StreamSetHTTPHeaders(httpd_stream_t * p_stream,
+                               const httpd_header *p_headers, size_t i_headers)
 {
     if (!p_stream)
         return VLC_EGENERIC;



More information about the vlc-commits mailing list