projects
/
u
/
mdw
/
putty
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
ab7a09e
)
Make bombout() less of a macro and more of a function.
author
ben
<ben@cda61777-01e9-0310-a592-d414129be87e>
Mon, 27 Aug 2012 21:55:45 +0000
(21:55 +0000)
committer
ben
<ben@cda61777-01e9-0310-a592-d414129be87e>
Mon, 27 Aug 2012 21:55:45 +0000
(21:55 +0000)
This gives GCC slightly fewer opportunities to gratuitously inflate
its output.
git-svn-id: svn://svn.tartarus.org/sgt/putty@9634
cda61777
-01e9-0310-a592-
d414129be87e
ssh.c
patch
|
blob
|
blame
|
history
diff --git
a/ssh.c
b/ssh.c
index
bdab733
..
9941079
100644
(file)
--- a/
ssh.c
+++ b/
ssh.c
@@
-1019,14
+1019,15
@@
static void logeventf(Ssh ssh, const char *fmt, ...)
sfree(buf);
}
-#define bombout(msg) \
- do { \
- char *text = dupprintf msg; \
- ssh_do_close(ssh, FALSE); \
- logevent(text); \
- connection_fatal(ssh->frontend, "%s", text); \
- sfree(text); \
- } while (0)
+static void bomb_out(Ssh ssh, char *text)
+{
+ ssh_do_close(ssh, FALSE);
+ logevent(text);
+ connection_fatal(ssh->frontend, "%s", text);
+ sfree(text);
+}
+
+#define bombout(msg) bomb_out(ssh, dupprintf msg)
/* Functions to leave bits out of the SSH packet log file. */