mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-12 16:47:42 -05:00
Add lots of missing 'static' keywords.
A trawl through the code with -Wmissing-prototypes and -Wmissing-variable-declarations turned up a lot of things that should have been internal to a particular source file, but were accidentally global. Keep the namespace clean by making them all static. (Also, while I'm here, a couple of them were missing a 'const': the ONE and ZERO arrays in sshcrcda.c, and EMPTY_WINDOW_TITLE in terminal.c.)
This commit is contained in:
@ -32,9 +32,8 @@ struct x11_err_to_ignore {
|
||||
unsigned long serial;
|
||||
};
|
||||
|
||||
struct x11_err_to_ignore *errs;
|
||||
|
||||
size_t nerrs, errsize;
|
||||
static struct x11_err_to_ignore *errs;
|
||||
static size_t nerrs, errsize;
|
||||
|
||||
static int x11_error_handler(Display *thisdisp, XErrorEvent *err)
|
||||
{
|
||||
|
Reference in New Issue
Block a user