1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-06 22:12:47 -05:00

Colin's const-fixing Patch Of Death. Seems to build fine on Windows

as well as Unix, so it can go in.

[originally from svn r3162]
This commit is contained in:
Simon Tatham
2003-05-04 14:18:18 +00:00
parent 0bfe876b57
commit 6bb121ecb9
31 changed files with 104 additions and 93 deletions

View File

@ -166,7 +166,7 @@ int from_backend(void *frontend, int is_stderr, const char *data, int len)
return term_data(inst->term, is_stderr, data, len);
}
void logevent(void *frontend, char *string)
void logevent(void *frontend, const char *string)
{
struct gui_data *inst = (struct gui_data *)frontend;
@ -3075,7 +3075,8 @@ int pt_main(int argc, char **argv)
inst->back = select_backend(&inst->cfg);
{
char *realhost, *error;
char *realhost;
const char *error;
error = inst->back->init((void *)inst, &inst->backhandle,
&inst->cfg, inst->cfg.host, inst->cfg.port,