Quoting Diego Biurrun (2015-03-10 21:38:46)
> This fixes a number of "assignment from incompatible pointer type" warnings.
> ---
>  libavutil/hmac.c | 10 +++++-----
>  1 file changed, 5 insertions(+), 5 deletions(-)
> 
> diff --git a/libavutil/hmac.c b/libavutil/hmac.c
> index f87728e..1a02415 100644
> --- a/libavutil/hmac.c
> +++ b/libavutil/hmac.c
> @@ -53,17 +53,17 @@ AVHMAC *av_hmac_alloc(enum AVHMACType type)
>      case AV_HMAC_MD5:
>          c->blocklen = 64;
>          c->hashlen  = 16;
> -        c->init     = av_md5_init;
> -        c->update   = av_md5_update;
> -        c->final    = av_md5_final;
> +        c->init     = (void (*)(void *)) av_md5_init;
> +        c->update   = (void (*)(void *, const uint8_t *, int)) av_md5_update;
> +        c->final    = (void (*)(void *, uint8_t *)) av_md5_final;
>          c->hash     = av_md5_alloc();
>          break;
>      case AV_HMAC_SHA1:
>          c->blocklen = 64;
>          c->hashlen  = 20;
>          c->init     = sha1_init;
> -        c->update   = av_sha_update;
> -        c->final    = av_sha_final;
> +        c->update   = (void (*)(void *, const uint8_t *, int)) av_sha_update;

Stab. I've seen this patch before and had an objection to it. It's not
addressed here.

-- 
Anton Khirnov
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to