1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-12 08:43:53 -05:00

Add a nonfatal() function everywhere, to be used for reporting things

that the user really ought to know but that are not actually fatal to
continued operation of PuTTY or a single network connection.

[originally from svn r9932]
This commit is contained in:
Simon Tatham
2013-07-19 17:44:28 +00:00
parent 1d21346d4c
commit acf38797eb
10 changed files with 118 additions and 0 deletions

View File

@ -49,6 +49,19 @@ void modalfatalbox(char *p, ...)
}
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;