[FFmpeg-devel] [PATCH] lavu/hash.c: Add missing "static const".

Clément Bœsch u at pkh.me
Fri Aug 29 21:29:46 CEST 2014


On Fri, Aug 29, 2014 at 06:34:52PM +0200, Reimar Döffinger wrote:
> Signed-off-by: Reimar Döffinger <Reimar.Doeffinger at gmx.de>
> ---
>  libavutil/hash.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/libavutil/hash.c b/libavutil/hash.c
> index 773f29e..979fdd9 100644
> --- a/libavutil/hash.c
> +++ b/libavutil/hash.c
> @@ -63,7 +63,7 @@ typedef struct AVHashContext {
>  struct {
>      const char *name;
>      int size;
> -} hashdesc[] = {
> +} static const hashdesc[] = {
>      [MD5]     = {"MD5",     16},
>      [MURMUR3] = {"murmur3", 16},
>      [RIPEMD128] = {"RIPEMD128", 16},

shouldn't that be static const struct { } hashdesc[] = { ... }

as in static const <type> foo[] = { ... };

?

-- 
Clément B.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 473 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20140829/f7149407/attachment.asc>


More information about the ffmpeg-devel mailing list