projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Text around -load option "(although Plink still requires an explicitly
[u/mdw/putty]
/
logging.c
diff --git
a/logging.c
b/logging.c
index
499747c
..
f32e9ca
100644
(file)
--- a/
logging.c
+++ b/
logging.c
@@
-43,7
+43,7
@@
void logtraffic(void *handle, unsigned char c, int logmode)
* platforms. Platforms which don't have a meaningful stderr can
* just avoid defining FLAG_STDERR.
*/
* platforms. Platforms which don't have a meaningful stderr can
* just avoid defining FLAG_STDERR.
*/
-void log_eventlog(void *handle, char *event)
+void log_eventlog(void *handle, c
onst c
har *event)
{
struct LogContext *ctx = (struct LogContext *)handle;
if ((flags & FLAG_STDERR) && (flags & FLAG_VERBOSE)) {
{
struct LogContext *ctx = (struct LogContext *)handle;
if ((flags & FLAG_STDERR) && (flags & FLAG_VERBOSE)) {
@@
-163,7
+163,7
@@
void logfclose(void *handle)
void *log_init(void *frontend, Config *cfg)
{
void *log_init(void *frontend, Config *cfg)
{
- struct LogContext *ctx = s
malloc(sizeof(struct LogContext)
);
+ struct LogContext *ctx = s
new(struct LogContext
);
ctx->lgfp = NULL;
ctx->frontend = frontend;
ctx->cfg = *cfg; /* STRUCTURE COPY */
ctx->lgfp = NULL;
ctx->frontend = frontend;
ctx->cfg = *cfg; /* STRUCTURE COPY */