1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-10-18 02:19:39 +00:00

libmd: tests: raise WARNS to the default

The drivers just had a small issue, passing a literal string as
non-const.  Fix it and lift WARNS.

PR:		280784 (exp-run)
Reviewed by:	delphij, emaste
Differential Revision:	https://reviews.freebsd.org/D34501
This commit is contained in:
Kyle Evans 2022-03-08 11:20:09 -06:00
parent e0c51286dd
commit 01112a1711
5 changed files with 6 additions and 9 deletions

View File

@ -2,9 +2,6 @@
PACKAGE= tests
# XXX
WARNS= 0
ATF_TESTS_SH= libmd_test
MDTESTS= md rmd sha skein

View File

@ -37,8 +37,8 @@
#endif
/* Digests a string and prints the result. */
static void
MDString(char *string)
static void
MDString(const char *string)
{
char buf[33];

View File

@ -20,8 +20,8 @@
#include "ripemd.h"
/* Digests a string and prints the result. */
static void
RIPEMD160String(char *string)
static void
RIPEMD160String(const char *string)
{
char buf[2*20 + 1];

View File

@ -58,7 +58,7 @@
/* Digests a string and prints the result. */
static void
SHAString(char *string)
SHAString(const char *string)
{
char buf[2*64 + 1];

View File

@ -41,7 +41,7 @@
/* Digests a string and prints the result. */
static void
SKEINString(char *string)
SKEINString(const char *string)
{
char buf[2*128 + 1];