mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-09 09:27:59 +00: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:
parent
cc6d3591ad
commit
30148eee6a
@ -173,8 +173,7 @@ void BinarySink_put_uint64(BinarySink *, uint64_t);
|
||||
void BinarySink_put_string(BinarySink *, const void *data, size_t len);
|
||||
void BinarySink_put_stringpl(BinarySink *, ptrlen);
|
||||
void BinarySink_put_stringz(BinarySink *, const char *str);
|
||||
struct strbuf;
|
||||
void BinarySink_put_stringsb(BinarySink *, struct strbuf *);
|
||||
void BinarySink_put_stringsb(BinarySink *, strbuf *);
|
||||
void BinarySink_put_asciz(BinarySink *, const char *str);
|
||||
bool BinarySink_put_pstring(BinarySink *, const char *str);
|
||||
void BinarySink_put_mp_ssh1(BinarySink *bs, mp_int *x);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user