mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-10 07:43:48 -05:00
Make plug receive and closing functions return void instead of int.
Nothing was paying attention to their return values any more anyway.
This commit is contained in:
8
telnet.c
8
telnet.c
@ -658,8 +658,8 @@ static void telnet_log(Plug plug, int type, SockAddr addr, int port,
|
||||
telnet->session_started);
|
||||
}
|
||||
|
||||
static int telnet_closing(Plug plug, const char *error_msg, int error_code,
|
||||
int calling_back)
|
||||
static void telnet_closing(Plug plug, const char *error_msg, int error_code,
|
||||
int calling_back)
|
||||
{
|
||||
Telnet telnet = (Telnet) plug;
|
||||
|
||||
@ -681,17 +681,15 @@ static int telnet_closing(Plug plug, const char *error_msg, int error_code,
|
||||
connection_fatal(telnet->frontend, "%s", error_msg);
|
||||
}
|
||||
/* Otherwise, the remote side closed the connection normally. */
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int telnet_receive(Plug plug, int urgent, char *data, int len)
|
||||
static void telnet_receive(Plug plug, int urgent, char *data, int len)
|
||||
{
|
||||
Telnet telnet = (Telnet) plug;
|
||||
if (urgent)
|
||||
telnet->in_synch = TRUE;
|
||||
telnet->session_started = TRUE;
|
||||
do_telnet_read(telnet, data, len);
|
||||
return 1;
|
||||
}
|
||||
|
||||
static void telnet_sent(Plug plug, int bufsize)
|
||||
|
Reference in New Issue
Block a user