1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-25 01:02:24 +00:00

wm_copydata_got_response: fix wrong prototype.

In an early draft of commit de38a4d82 I used 'void *' as the reqid
type, and then I thought better of it and made it a special type of
its own, in keeping with my usual idea that it's better to have your
casts somewhat checked than totally unchecked. One remnant of the
'void *' version got past me. Now fixed.
This commit is contained in:
Simon Tatham 2020-01-26 12:45:30 +00:00
parent 7b79d22021
commit ba0204760e

View File

@ -776,8 +776,8 @@ static void wm_copydata_got_msg(void *vctx)
pageant_handle_msg(&wmcpc, NULL, make_ptrlen(wmct.body, wmct.bodylen)); pageant_handle_msg(&wmcpc, NULL, make_ptrlen(wmct.body, wmct.bodylen));
} }
static void wm_copydata_got_response(PageantClient *pc, void *reqid, static void wm_copydata_got_response(
ptrlen response) PageantClient *pc, PageantClientRequestId *reqid, ptrlen response)
{ {
if (response.len > wmct.bodysize) { if (response.len > wmct.bodysize) {
/* Output would overflow message buffer. Replace with a /* Output would overflow message buffer. Replace with a