mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-01 03:22:48 -05:00
Add a batch of missing 'static's.
This commit is contained in:
@ -21,7 +21,7 @@ static void fxp_internal_error(const char *msg);
|
||||
* Client-specific parts of the send- and receive-packet system.
|
||||
*/
|
||||
|
||||
bool sftp_send(struct sftp_packet *pkt)
|
||||
static bool sftp_send(struct sftp_packet *pkt)
|
||||
{
|
||||
bool ret;
|
||||
sftp_send_prepare(pkt);
|
||||
|
@ -987,8 +987,8 @@ static void share_xchannel_add_message(
|
||||
xc->msgtail = msg;
|
||||
}
|
||||
|
||||
void share_dead_xchannel_respond(struct ssh_sharing_connstate *cs,
|
||||
struct share_xchannel *xc)
|
||||
static void share_dead_xchannel_respond(struct ssh_sharing_connstate *cs,
|
||||
struct share_xchannel *xc)
|
||||
{
|
||||
/*
|
||||
* Handle queued incoming messages from the server destined for an
|
||||
@ -1033,10 +1033,9 @@ void share_dead_xchannel_respond(struct ssh_sharing_connstate *cs,
|
||||
}
|
||||
}
|
||||
|
||||
void share_xchannel_confirmation(struct ssh_sharing_connstate *cs,
|
||||
struct share_xchannel *xc,
|
||||
struct share_channel *chan,
|
||||
unsigned downstream_window)
|
||||
static void share_xchannel_confirmation(
|
||||
struct ssh_sharing_connstate *cs, struct share_xchannel *xc,
|
||||
struct share_channel *chan, unsigned downstream_window)
|
||||
{
|
||||
strbuf *packet;
|
||||
|
||||
@ -1070,8 +1069,8 @@ void share_xchannel_confirmation(struct ssh_sharing_connstate *cs,
|
||||
strbuf_free(packet);
|
||||
}
|
||||
|
||||
void share_xchannel_failure(struct ssh_sharing_connstate *cs,
|
||||
struct share_xchannel *xc)
|
||||
static void share_xchannel_failure(struct ssh_sharing_connstate *cs,
|
||||
struct share_xchannel *xc)
|
||||
{
|
||||
/*
|
||||
* If downstream refuses to open our X channel at all for some
|
||||
@ -1986,7 +1985,7 @@ static int share_listen_accepting(Plug *plug,
|
||||
* configurations which return the same string from this function will
|
||||
* be treated as potentially shareable with each other.
|
||||
*/
|
||||
char *ssh_share_sockname(const char *host, int port, Conf *conf)
|
||||
static char *ssh_share_sockname(const char *host, int port, Conf *conf)
|
||||
{
|
||||
char *username = NULL;
|
||||
char *sockname;
|
||||
|
21
ssh/zlib.c
21
ssh/zlib.c
@ -573,7 +573,7 @@ struct ssh_zlib_compressor {
|
||||
ssh_compressor sc;
|
||||
};
|
||||
|
||||
ssh_compressor *zlib_compress_init(void)
|
||||
static ssh_compressor *zlib_compress_init(void)
|
||||
{
|
||||
struct Outbuf *out;
|
||||
struct ssh_zlib_compressor *comp = snew(struct ssh_zlib_compressor);
|
||||
@ -592,7 +592,7 @@ ssh_compressor *zlib_compress_init(void)
|
||||
return &comp->sc;
|
||||
}
|
||||
|
||||
void zlib_compress_cleanup(ssh_compressor *sc)
|
||||
static void zlib_compress_cleanup(ssh_compressor *sc)
|
||||
{
|
||||
struct ssh_zlib_compressor *comp =
|
||||
container_of(sc, struct ssh_zlib_compressor, sc);
|
||||
@ -604,10 +604,9 @@ void zlib_compress_cleanup(ssh_compressor *sc)
|
||||
sfree(comp);
|
||||
}
|
||||
|
||||
void zlib_compress_block(ssh_compressor *sc,
|
||||
const unsigned char *block, int len,
|
||||
unsigned char **outblock, int *outlen,
|
||||
int minlen)
|
||||
static void zlib_compress_block(
|
||||
ssh_compressor *sc, const unsigned char *block, int len,
|
||||
unsigned char **outblock, int *outlen, int minlen)
|
||||
{
|
||||
struct ssh_zlib_compressor *comp =
|
||||
container_of(sc, struct ssh_zlib_compressor, sc);
|
||||
@ -904,7 +903,7 @@ struct zlib_decompress_ctx {
|
||||
ssh_decompressor dc;
|
||||
};
|
||||
|
||||
ssh_decompressor *zlib_decompress_init(void)
|
||||
static ssh_decompressor *zlib_decompress_init(void)
|
||||
{
|
||||
struct zlib_decompress_ctx *dctx = snew(struct zlib_decompress_ctx);
|
||||
unsigned char lengths[288];
|
||||
@ -927,7 +926,7 @@ ssh_decompressor *zlib_decompress_init(void)
|
||||
return &dctx->dc;
|
||||
}
|
||||
|
||||
void zlib_decompress_cleanup(ssh_decompressor *dc)
|
||||
static void zlib_decompress_cleanup(ssh_decompressor *dc)
|
||||
{
|
||||
struct zlib_decompress_ctx *dctx =
|
||||
container_of(dc, struct zlib_decompress_ctx, dc);
|
||||
@ -986,9 +985,9 @@ static void zlib_emit_char(struct zlib_decompress_ctx *dctx, int c)
|
||||
|
||||
#define EATBITS(n) ( dctx->nbits -= (n), dctx->bits >>= (n) )
|
||||
|
||||
bool zlib_decompress_block(ssh_decompressor *dc,
|
||||
const unsigned char *block, int len,
|
||||
unsigned char **outblock, int *outlen)
|
||||
static bool zlib_decompress_block(
|
||||
ssh_decompressor *dc, const unsigned char *block, int len,
|
||||
unsigned char **outblock, int *outlen)
|
||||
{
|
||||
struct zlib_decompress_ctx *dctx =
|
||||
container_of(dc, struct zlib_decompress_ctx, dc);
|
||||
|
Reference in New Issue
Block a user