[PATCH 3/5] cpukit/libmd/md5.c: fix warning
Joel Sherrill
joel at rtems.org
Wed Jun 8 16:09:30 UTC 2022
On Wed, Jun 8, 2022, 10:45 AM Gedare Bloom <gedare at rtems.org> wrote:
> Does this code have an upstream?
>
I tried to find it. Maybe whoever added it has memory of the source.
As best I can tell, it is lightly or not maintained reference code.
> On Wed, Jun 8, 2022 at 7:35 AM Matthew Joyce
> <matthew.joyce at embedded-brains.de> wrote:
> >
> > From: Matt Joyce <matthew.joyce at embedded-brains.de>
> >
> > Specify array size in parameter to match function prototype. This
> > fixes a new warning in gcc 12.
> > ---
> > cpukit/libmd/md5.c | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/cpukit/libmd/md5.c b/cpukit/libmd/md5.c
> > index 4c909f37a0..5e3a100c7b 100644
> > --- a/cpukit/libmd/md5.c
> > +++ b/cpukit/libmd/md5.c
> > @@ -165,7 +165,7 @@ void MD5Update (
> > ends with the desired message digest in mdContext->digest[0...15].
> > */
> > void MD5Final (
> > - unsigned char hash[],
> > + unsigned char hash[16],
> > MD5_CTX *mdContext )
> > {
> > UINT4 in[16];
> > --
> > 2.31.1
> >
> > _______________________________________________
> > devel mailing list
> > devel at rtems.org
> > http://lists.rtems.org/mailman/listinfo/devel
> _______________________________________________
> devel mailing list
> devel at rtems.org
> http://lists.rtems.org/mailman/listinfo/devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20220608/4ef304ec/attachment.htm>
More information about the devel
mailing list