Browse Source

httpd: missing const

pull/60/head
Rémi Denis-Courmont 9 years ago
parent
commit
2131d5cb94
  1. 2
      include/vlc_httpd.h
  2. 3
      src/network/httpd.c

2
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 );

3
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;

Loading…
Cancel
Save