[vlc-devel] [vlc-commits] commit: Fix const warnings (Pierre Ynard )
Laurent Aimar
fenrir at elivagar.org
Sun Nov 14 11:14:22 CET 2010
On Sun, Nov 14, 2010 at 10:23:51AM +0100, git at videolan.org wrote:
> vlc | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Sun Nov 14 10:23:25 2010 +0100| [f3f203e5fd90f74850ffd0663e90e3f30cc05a29] | committer: Pierre Ynard
>
> Fix const warnings
>
> diff --git a/modules/demux/xiph.h b/modules/demux/xiph.h
> index dc1df97..24e4ca9 100644
> --- a/modules/demux/xiph.h
> +++ b/modules/demux/xiph.h
> @@ -69,7 +69,7 @@ static inline int xiph_SplitHeaders(unsigned packet_size[], void *packet[], unsi
> }
>
> static inline int xiph_PackHeaders(int *extra_size, void **extra,
> - unsigned packet_size[], void *packet[], unsigned packet_count )
> + unsigned packet_size[], const void *packet[], unsigned packet_count )
> {
> if (packet_count <= 0 || packet_count > XIPH_MAX_HEADER_COUNT)
> return VLC_EGENERIC;
> @@ -117,7 +117,7 @@ static inline int xiph_PackHeaders(int *extra_size, void **extra,
> }
>
> static inline int xiph_AppendHeaders(int *extra_size, void **extra,
> - unsigned size, const void *data)
> + unsigned size, void *data)
I doubt this one is correct. data is not modified in the function and its
sub fonctions.
--
fenrir
More information about the vlc-devel
mailing list