mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-14 17:47:33 -05:00
New marshalling function put_datapl().
Just like put_data(), but takes a ptrlen rather than separate ptr and len arguments, so it saves a bit of repetition at call sites. I probably should have written this ages ago, but better late than never; I've also converted every call site I can find that needed it.
This commit is contained in:
2
x11fwd.c
2
x11fwd.c
@ -454,7 +454,7 @@ void BinarySink_put_stringpl_xauth(BinarySink *bs, ptrlen pl)
|
||||
{
|
||||
assert((pl.len >> 16) == 0);
|
||||
put_uint16(bs, pl.len);
|
||||
put_data(bs, pl.ptr, pl.len);
|
||||
put_datapl(bs, pl);
|
||||
}
|
||||
#define put_stringpl_xauth(bs, ptrlen) \
|
||||
BinarySink_put_stringpl_xauth(BinarySink_UPCAST(bs),ptrlen)
|
||||
|
Reference in New Issue
Block a user