Mes C Library: memchr: Avoid compile warning.

* lib/string/memchr.c (memchr): Cast return to void*.
This commit is contained in:
Jan (janneke) Nieuwenhuizen 2022-04-30 16:40:57 +02:00
parent 8920f558c6
commit c45bd1bdd6
No known key found for this signature in database
GPG key ID: F3C1A0D9C1D65273

View file

@ -1,6 +1,6 @@
/* -*-comment-start: "//";comment-end:""-*-
* GNU Mes --- Maxwell Equations of Software
* Copyright © 2017,2018 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
* Copyright © 2017,2018,2022 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
*
* This file is part of GNU Mes.
*
@ -29,7 +29,7 @@ memchr (void const *block, int c, size_t size)
{
size = size - 1;
if (c == p[0])
return p;
return (void*) p;
p = p + 1;
}