From bc37fc7540184024c1fc383f17ed6fd6cccfc259 Mon Sep 17 00:00:00 2001 From: claudio Date: Fri, 9 Aug 2024 08:30:13 +0000 Subject: [PATCH] Add string.h include and typecast data to reduce warnings OK deraadt@ millert@ --- regress/gnu/egcs/gcc-bounds/md-3.c | 3 ++- regress/gnu/egcs/gcc-bounds/md-5.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/regress/gnu/egcs/gcc-bounds/md-3.c b/regress/gnu/egcs/gcc-bounds/md-3.c index a3d7364da89..c9c033ba299 100644 --- a/regress/gnu/egcs/gcc-bounds/md-3.c +++ b/regress/gnu/egcs/gcc-bounds/md-3.c @@ -1,5 +1,6 @@ #include #include +#include #include #include @@ -10,7 +11,7 @@ main(int argc, char **argv) unsigned char *data = malloc(10); char ret[33]; - strlcpy(data, "123456789", 10); + strlcpy((char *)data, "123456789", 10); MD5Init(&ctx); MD5Data(data, sizeof data, ret); diff --git a/regress/gnu/egcs/gcc-bounds/md-5.c b/regress/gnu/egcs/gcc-bounds/md-5.c index e1d0538b106..223c33d52b2 100644 --- a/regress/gnu/egcs/gcc-bounds/md-5.c +++ b/regress/gnu/egcs/gcc-bounds/md-5.c @@ -1,5 +1,6 @@ #include #include +#include #include #include @@ -10,7 +11,7 @@ main(int argc, char **argv) unsigned char *data = malloc(10); char ret[32]; - strlcpy(data, "123456789", 10); + strlcpy((char *)data, "123456789", 10); RMD160Init(&ctx); RMD160Data(data, sizeof data, ret); -- 2.20.1