X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=testback.c;h=bc2eb31f498d2b8a26ae3b637f4b962788076770;hb=4a8c36d4b739392b27ffefb1cacfdb6f41029507;hp=9ca9c49e7e6e1399e5e1879ed458cbfde93b3f22;hpb=2e2959047081f6b34971e56db87d4d54ed3d1293;p=PuTTY.git diff --git a/testback.c b/testback.c index 9ca9c49e..bc2eb31f 100644 --- a/testback.c +++ b/testback.c @@ -1,4 +1,4 @@ -/* $Id: testback.c,v 1.8 2003/04/05 14:32:58 ben Exp $ */ +/* $Id: testback.c,v 1.10 2004/06/20 17:07:32 jacob Exp $ */ /* * Copyright (c) 1999 Simon Tatham * Copyright (c) 1999 Ben Harris @@ -33,8 +33,10 @@ #include "putty.h" -static char *null_init(void *, void **, Config *, char *, int, char **, int); -static char *loop_init(void *, void **, Config *, char *, int, char **, int); +static const char *null_init(void *, void **, Config *, char *, int, char **, + int, int); +static const char *loop_init(void *, void **, Config *, char *, int, char **, + int, int); static void null_free(void *); static void loop_free(void *); static void null_reconfig(void *, Config *); @@ -68,16 +70,16 @@ struct loop_state { Terminal *term; }; -static char *null_init(void *frontend_handle, void **backend_handle, - Config *cfg, char *host, int port, char **realhost, - int nodelay) { +static const char *null_init(void *frontend_handle, void **backend_handle, + Config *cfg, char *host, int port, + char **realhost, int nodelay, int keepalive) { return NULL; } -static char *loop_init(void *frontend_handle, void **backend_handle, - Config *cfg, char *host, int port, char **realhost, - int nodelay) { +static const char *loop_init(void *frontend_handle, void **backend_handle, + Config *cfg, char *host, int port, + char **realhost, int nodelay, int keepalive) { struct loop_state *st = snew(struct loop_state); st->term = frontend_handle;