mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-02 12:02:47 -05:00
Add missing 'static' on file-internal declarations.
sk_startup and sk_nextaddr are entirely internal to winnet.c; nearly all of import.c and minibidi.c's internal routines should have been static and weren't; {read,write}_utf8 are internal to charset/utf8.c (and didn't even need separate declarations at all); do_sftp_cleanup is internal to psftp.c, and get_listitemheight to gtkdlg.c. While I was editing those prototypes anyway, I've also added missing 'const' to the 'char *' passphrase parameters in import,c.
This commit is contained in:
@ -7,18 +7,13 @@
|
||||
#include "charset.h"
|
||||
#include "internal.h"
|
||||
|
||||
void read_utf8(charset_spec const *, long int, charset_state *,
|
||||
void (*)(void *, long int), void *);
|
||||
void write_utf8(charset_spec const *, long int,
|
||||
charset_state *, void (*)(void *, long int), void *);
|
||||
|
||||
/*
|
||||
* UTF-8 has no associated data, so `charset' may be ignored.
|
||||
*/
|
||||
|
||||
void read_utf8(charset_spec const *charset, long int input_chr,
|
||||
charset_state *state,
|
||||
void (*emit)(void *ctx, long int output), void *emitctx)
|
||||
static void read_utf8(charset_spec const *charset, long int input_chr,
|
||||
charset_state *state,
|
||||
void (*emit)(void *ctx, long int output), void *emitctx)
|
||||
{
|
||||
UNUSEDARG(charset);
|
||||
|
||||
@ -186,9 +181,9 @@ void read_utf8(charset_spec const *charset, long int input_chr,
|
||||
* charset_state.
|
||||
*/
|
||||
|
||||
void write_utf8(charset_spec const *charset, long int input_chr,
|
||||
charset_state *state,
|
||||
void (*emit)(void *ctx, long int output), void *emitctx)
|
||||
static void write_utf8(charset_spec const *charset, long int input_chr,
|
||||
charset_state *state,
|
||||
void (*emit)(void *ctx, long int output), void *emitctx)
|
||||
{
|
||||
UNUSEDARG(charset);
|
||||
UNUSEDARG(state);
|
||||
|
Reference in New Issue
Block a user