1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-08 08:58:00 +00:00

Ensure test programs have a dputs().

So that they don't cause a link failure when built with -DDEBUG.
(testcrypt.c already had this.)
This commit is contained in:
Jacob Nevins 2020-06-28 14:05:21 +01:00
parent 9ddb966438
commit 2f832bb21f
2 changed files with 10 additions and 0 deletions

View File

@ -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;

View File

@ -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;