1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-09 17:38:00 +00:00
putty-source/stubs/null-socket.c
Simon Tatham 807ed08da0 Centralise stub plug/socket functions.
In the previous few commits I noticed some repeated work in the form
of pointless empty implementations of Plug's log method, plus some
existing (and some new) empty cases of Socket's endpoint_info. As a
cleanup, I'm replacing as many as I can find with uses of a central
null implementation in the stubs directory.
2024-06-29 12:19:35 +01:00

13 lines
273 B
C

/*
* null-socket.c: provide a null implementation of any Socket vtable
* method that might otherwise need to be reimplemented in multiple
* places as a no-op.
*/
#include "putty.h"
SocketEndpointInfo *nullsock_endpoint_info(Socket *s, bool peer)
{
return NULL;
}