mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-03 04:22:47 -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
raw.c
8
raw.c
@ -61,8 +61,8 @@ static void raw_check_close(Raw raw)
|
||||
}
|
||||
}
|
||||
|
||||
static int raw_closing(Plug plug, const char *error_msg, int error_code,
|
||||
int calling_back)
|
||||
static void raw_closing(Plug plug, const char *error_msg, int error_code,
|
||||
int calling_back)
|
||||
{
|
||||
Raw raw = (Raw) plug;
|
||||
|
||||
@ -92,17 +92,15 @@ static int raw_closing(Plug plug, const char *error_msg, int error_code,
|
||||
raw->sent_console_eof = TRUE;
|
||||
raw_check_close(raw);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int raw_receive(Plug plug, int urgent, char *data, int len)
|
||||
static void raw_receive(Plug plug, int urgent, char *data, int len)
|
||||
{
|
||||
Raw raw = (Raw) plug;
|
||||
c_write(raw, data, len);
|
||||
/* We count 'session start', for proxy logging purposes, as being
|
||||
* when data is received from the network and printed. */
|
||||
raw->session_started = TRUE;
|
||||
return 1;
|
||||
}
|
||||
|
||||
static void raw_sent(Plug plug, int bufsize)
|
||||
|
Reference in New Issue
Block a user