mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-09 17:38: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:
parent
9ddb966438
commit
2f832bb21f
5
testsc.c
5
testsc.c
@ -1414,6 +1414,11 @@ TESTLIST(STRUCT_TEST)
|
|||||||
#undef STRUCT_TEST
|
#undef STRUCT_TEST
|
||||||
};
|
};
|
||||||
|
|
||||||
|
void dputs(const char *buf)
|
||||||
|
{
|
||||||
|
fputs(buf, stderr);
|
||||||
|
}
|
||||||
|
|
||||||
int main(int argc, char **argv)
|
int main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
bool doing_opts = true;
|
bool doing_opts = true;
|
||||||
|
@ -24,6 +24,11 @@ void out_of_memory(void)
|
|||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void dputs(const char *buf)
|
||||||
|
{
|
||||||
|
fputs(buf, stderr);
|
||||||
|
}
|
||||||
|
|
||||||
int main(int argc, char **argv)
|
int main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
unsigned char buf[16], *outbuf;
|
unsigned char buf[16], *outbuf;
|
||||||
|
Loading…
Reference in New Issue
Block a user