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:
parent
e0c51286dd
commit
01112a1711
@ -2,9 +2,6 @@
|
||||
|
||||
PACKAGE= tests
|
||||
|
||||
# XXX
|
||||
WARNS= 0
|
||||
|
||||
ATF_TESTS_SH= libmd_test
|
||||
|
||||
MDTESTS= md rmd sha skein
|
||||
|
@ -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];
|
||||
|
||||
|
@ -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];
|
||||
|
||||
|
@ -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];
|
||||
|
||||
|
@ -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];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user