[PATCH 2/8] string: correct prototype of strchrnul()
Simon Glass
sjg at chromium.org
Thu Jul 2 10:30:00 CEST 2026
On 2026-07-01T17:15:27, Rasmus Villemoes <rv at rasmusvillemoes.dk> wrote:
> string: correct prototype of strchrnul()
>
> Both glibc's (where this originated as a GNU extension) and the
> kernel's versions of strchrnul() return "char *", not "const
> char *". That also makes it consistent with the standard strchr()
> function.
>
> Signed-off-by: Rasmus Villemoes <rv at rasmusvillemoes.dk>
>
> include/linux/string.h | 2 +-
> lib/string.c | 4 ++--
> 2 files changed, 3 insertions(+), 3 deletions(-)
Reviewed-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot
mailing list