From 2f832bb21fd7fc47fc9f49230c5c523c7133b378 Mon Sep 17 00:00:00 2001 From: Jacob Nevins Date: Sun, 28 Jun 2020 14:05:21 +0100 Subject: [PATCH] Ensure test programs have a dputs(). So that they don't cause a link failure when built with -DDEBUG. (testcrypt.c already had this.) --- testsc.c | 5 +++++ testzlib.c | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/testsc.c b/testsc.c index 132270ca..a977084e 100644 --- a/testsc.c +++ b/testsc.c @@ -1414,6 +1414,11 @@ TESTLIST(STRUCT_TEST) #undef STRUCT_TEST }; +void dputs(const char *buf) +{ + fputs(buf, stderr); +} + int main(int argc, char **argv) { bool doing_opts = true; diff --git a/testzlib.c b/testzlib.c index 95419e9a..0e7b424b 100644 --- a/testzlib.c +++ b/testzlib.c @@ -24,6 +24,11 @@ void out_of_memory(void) exit(1); } +void dputs(const char *buf) +{ + fputs(buf, stderr); +} + int main(int argc, char **argv) { unsigned char buf[16], *outbuf;