mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-09 17:38:00 +00:00
testback.c: add some missing 'const'.
This source file isn't actually built as part of even a test binary, so it hasn't been kept up to date with internal API changes. But it might still come in useful in the future (I think its original purpose was to substitute for a normal backend in order to test the GUI side of a new PuTTY port before the network side was written), so I'll at least try to carry on keeping it updated.
This commit is contained in:
parent
6c924ba862
commit
566d4826f4
20
testback.c
20
testback.c
@ -32,15 +32,15 @@
|
||||
|
||||
#include "putty.h"
|
||||
|
||||
static const char *null_init(void *, void **, Conf *, char *, int, char **,
|
||||
int, int);
|
||||
static const char *loop_init(void *, void **, Conf *, char *, int, char **,
|
||||
int, int);
|
||||
static const char *null_init(void *, void **, Conf *, const char *, int,
|
||||
char **, int, int);
|
||||
static const char *loop_init(void *, void **, Conf *, const char *, int,
|
||||
char **, int, int);
|
||||
static void null_free(void *);
|
||||
static void loop_free(void *);
|
||||
static void null_reconfig(void *, Conf *);
|
||||
static int null_send(void *, char *, int);
|
||||
static int loop_send(void *, char *, int);
|
||||
static int null_send(void *, const char *, int);
|
||||
static int loop_send(void *, const char *, int);
|
||||
static int null_sendbuffer(void *);
|
||||
static void null_size(void *, int, int);
|
||||
static void null_special(void *, Telnet_Special);
|
||||
@ -73,14 +73,14 @@ struct loop_state {
|
||||
};
|
||||
|
||||
static const char *null_init(void *frontend_handle, void **backend_handle,
|
||||
Conf *conf, char *host, int port,
|
||||
Conf *conf, const char *host, int port,
|
||||
char **realhost, int nodelay, int keepalive) {
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static const char *loop_init(void *frontend_handle, void **backend_handle,
|
||||
Conf *conf, char *host, int port,
|
||||
Conf *conf, const char *host, int port,
|
||||
char **realhost, int nodelay, int keepalive) {
|
||||
struct loop_state *st = snew(struct loop_state);
|
||||
|
||||
@ -104,12 +104,12 @@ static void null_reconfig(void *handle, Conf *conf) {
|
||||
|
||||
}
|
||||
|
||||
static int null_send(void *handle, char *buf, int len) {
|
||||
static int null_send(void *handle, const char *buf, int len) {
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int loop_send(void *handle, char *buf, int len) {
|
||||
static int loop_send(void *handle, const char *buf, int len) {
|
||||
struct loop_state *st = handle;
|
||||
|
||||
return from_backend(st->term, 0, buf, len);
|
||||
|
Loading…
Reference in New Issue
Block a user