From 1a2fbc66baecb57ce8342ab45d740f0d8cc0b919 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Sun, 20 Jan 2019 21:44:51 +0000 Subject: [PATCH] testcrypt: include a dputs() function. This allows me to compile testcrypt with -DDEBUG, even though it's not linked against the usual collection of platform-specific modules that normally provide dputs. I think the simplest possible dputs ('just output to stderr') is actually better for testcrypt, because that keeps it easy to compile for strange experimental platforms. --- testcrypt.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/testcrypt.c b/testcrypt.c index df3bdc33..ce9b44fb 100644 --- a/testcrypt.c +++ b/testcrypt.c @@ -992,6 +992,11 @@ static void free_all_values(void) freetree234(values); } +void dputs(const char *buf) +{ + fputs(buf, stderr); +} + int main(int argc, char **argv) { const char *infile = NULL, *outfile = NULL;