mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-01 03:22:48 -05:00
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.
This commit is contained in:
@ -63,12 +63,6 @@ static const char *sk_namedpipeserver_socket_error(Socket *s)
|
||||
return ps->error;
|
||||
}
|
||||
|
||||
static SocketEndpointInfo *sk_namedpipeserver_endpoint_info(
|
||||
Socket *s, bool peer)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static bool create_named_pipe(NamedPipeServerSocket *ps, bool first_instance)
|
||||
{
|
||||
SECURITY_ATTRIBUTES sa;
|
||||
@ -197,7 +191,7 @@ static const SocketVtable NamedPipeServerSocket_sockvt = {
|
||||
.plug = sk_namedpipeserver_plug,
|
||||
.close = sk_namedpipeserver_close,
|
||||
.socket_error = sk_namedpipeserver_socket_error,
|
||||
.endpoint_info = sk_namedpipeserver_endpoint_info,
|
||||
.endpoint_info = nullsock_endpoint_info,
|
||||
};
|
||||
|
||||
Socket *new_named_pipe_listener(const char *pipename, Plug *plug)
|
||||
|
Reference in New Issue
Block a user