From 2131d5cb948bfdf57a898853c99f3a0f30b1dd21 Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Denis-Courmont?= Date: Sun, 23 Jul 2017 17:18:57 +0300 Subject: [PATCH] httpd: missing const --- 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; -- 2.11.4.GIT