projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add a nonfatal() function everywhere, to be used for reporting things
[u/mdw/putty]
/
windows
/
winplink.c
diff --git
a/windows/winplink.c
b/windows/winplink.c
index
dfbb80d
..
37453bb
100644
(file)
--- a/
windows/winplink.c
+++ b/
windows/winplink.c
@@
-49,6
+49,19
@@
void modalfatalbox(char *p, ...)
}
cleanup_exit(1);
}
}
cleanup_exit(1);
}
+void nonfatal(char *p, ...)
+{
+ va_list ap;
+ fprintf(stderr, "ERROR: ");
+ va_start(ap, p);
+ vfprintf(stderr, p, ap);
+ va_end(ap);
+ fputc('\n', stderr);
+ if (logctx) {
+ log_free(logctx);
+ logctx = NULL;
+ }
+}
void connection_fatal(void *frontend, char *p, ...)
{
va_list ap;
void connection_fatal(void *frontend, char *p, ...)
{
va_list ap;