mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-05 21:42:47 -05:00
Remove spurious 'return' in void method wrappers.
For some reason, only Visual Studio bothers to give a warning when you write "return g()" inside a function f() when both f and g have void return type. (Of course it would be cleaner and more orthogonal if that was simply legal C in the first place - but given that it's not, it would be nice if more compilers let me know about it so I could fix it...)
This commit is contained in:
@ -163,14 +163,14 @@ static inline void sk_flush(Socket *s)
|
||||
|
||||
static inline void plug_log(
|
||||
Plug *p, int type, SockAddr *addr, int port, const char *msg, int code)
|
||||
{ return p->vt->log(p, type, addr, port, msg, code); }
|
||||
{ p->vt->log(p, type, addr, port, msg, code); }
|
||||
static inline void plug_closing(
|
||||
Plug *p, const char *msg, int code, bool calling_back)
|
||||
{ return p->vt->closing(p, msg, code, calling_back); }
|
||||
{ p->vt->closing(p, msg, code, calling_back); }
|
||||
static inline void plug_receive(Plug *p, int urg, const char *data, size_t len)
|
||||
{ return p->vt->receive(p, urg, data, len); }
|
||||
{ p->vt->receive(p, urg, data, len); }
|
||||
static inline void plug_sent (Plug *p, size_t bufsize)
|
||||
{ return p->vt->sent(p, bufsize); }
|
||||
{ p->vt->sent(p, bufsize); }
|
||||
static inline int plug_accepting(Plug *p, accept_fn_t cons, accept_ctx_t ctx)
|
||||
{ return p->vt->accepting(p, cons, ctx); }
|
||||
|
||||
|
Reference in New Issue
Block a user