mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-10 09:58:01 +00:00
Make bombout() less of a macro and more of a function.
This gives GCC slightly fewer opportunities to gratuitously inflate its output. [originally from svn r9634]
This commit is contained in:
parent
df83634e21
commit
3cc03d85e7
17
ssh.c
17
ssh.c
@ -1019,14 +1019,15 @@ static void logeventf(Ssh ssh, const char *fmt, ...)
|
|||||||
sfree(buf);
|
sfree(buf);
|
||||||
}
|
}
|
||||||
|
|
||||||
#define bombout(msg) \
|
static void bomb_out(Ssh ssh, char *text)
|
||||||
do { \
|
{
|
||||||
char *text = dupprintf msg; \
|
ssh_do_close(ssh, FALSE);
|
||||||
ssh_do_close(ssh, FALSE); \
|
logevent(text);
|
||||||
logevent(text); \
|
connection_fatal(ssh->frontend, "%s", text);
|
||||||
connection_fatal(ssh->frontend, "%s", text); \
|
sfree(text);
|
||||||
sfree(text); \
|
}
|
||||||
} while (0)
|
|
||||||
|
#define bombout(msg) bomb_out(ssh, dupprintf msg)
|
||||||
|
|
||||||
/* Functions to leave bits out of the SSH packet log file. */
|
/* Functions to leave bits out of the SSH packet log file. */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user