From: claudio Date: Fri, 9 Aug 2024 08:30:13 +0000 (+0000) Subject: Add string.h include and typecast data to reduce warnings X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=bc37fc7540184024c1fc383f17ed6fd6cccfc259;p=openbsd Add string.h include and typecast data to reduce warnings OK deraadt@ millert@ --- 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);