mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-01 03:22:48 -05:00
Yet more global-removal. The static variables in logging.c are now
absent, and also (I think) all the frontend request functions (such as request_resize) take a context pointer, so that multiple windows can be handled sensibly. I wouldn't swear to this, but I _think_ that only leaves the Unicode stuff as the last stubborn holdout. [originally from svn r2147]
This commit is contained in:
4
plink.c
4
plink.c
@ -40,7 +40,7 @@ void modalfatalbox(char *p, ...)
|
||||
WSACleanup();
|
||||
cleanup_exit(1);
|
||||
}
|
||||
void connection_fatal(char *p, ...)
|
||||
void connection_fatal(void *frontend, char *p, ...)
|
||||
{
|
||||
va_list ap;
|
||||
fprintf(stderr, "FATAL ERROR: ");
|
||||
@ -538,6 +538,8 @@ int main(int argc, char **argv)
|
||||
fprintf(stderr, "Unable to open connection:\n%s", error);
|
||||
return 1;
|
||||
}
|
||||
logctx = log_init(NULL);
|
||||
back->provide_logctx(backhandle, logctx);
|
||||
sfree(realhost);
|
||||
}
|
||||
connopen = 1;
|
||||
|
Reference in New Issue
Block a user