1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-01 11:32:48 -05:00

marshal.[ch]: remove redundant declaration.

Spotted this in passing while I was adding new functions in the same
area. That 'struct strbuf;' must have been there since before I
introduced defs.h to predeclare all the structure tag names and their
typedefs. But marshal.h includes defs.h itself, so it has no reason to
worry about the possibility that the typedef 'strbuf' might not
already exist.
This commit is contained in:
Simon Tatham
2021-11-19 13:13:23 +00:00
parent cc6d3591ad
commit 30148eee6a
2 changed files with 2 additions and 3 deletions

View File

@ -79,7 +79,7 @@ void BinarySink_put_stringz(BinarySink *bs, const char *str)
BinarySink_put_string(bs, str, strlen(str));
}
void BinarySink_put_stringsb(BinarySink *bs, struct strbuf *buf)
void BinarySink_put_stringsb(BinarySink *bs, strbuf *buf)
{
BinarySink_put_string(bs, buf->s, buf->len);
strbuf_free(buf);