mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-03-29 09:47:08 -05:00
Add some missing #includes.
My experimental build with clang-cl at -Wall did show up a few things that are safe enough to fix right now. One was this list of missing includes, which was causing a lot of -Wmissing-prototype warnings, and is a real risk because it means the declarations in headers weren't being type-checked against the actual function definitions. Happily, no actual mismatches.
This commit is contained in:
parent
10d3645a93
commit
1b851758bd
@ -45,6 +45,7 @@ if(OUTPUT_TYPE STREQUAL header)
|
||||
* Generated by cmake/gitcommit.cmake.
|
||||
*/
|
||||
|
||||
#include \"putty.h\"
|
||||
const char commitid[] = \"${commit}\";
|
||||
")
|
||||
elseif(OUTPUT_TYPE STREQUAL halibut)
|
||||
|
@ -7,6 +7,7 @@
|
||||
#include "puttymem.h"
|
||||
|
||||
#include "mpint.h"
|
||||
#include "mpunsafe.h"
|
||||
#include "crypto/mpint_i.h"
|
||||
|
||||
/*
|
||||
|
1
psocks.c
1
psocks.c
@ -7,6 +7,7 @@
|
||||
#include <errno.h>
|
||||
|
||||
#include "putty.h"
|
||||
#include "storage.h"
|
||||
#include "misc.h"
|
||||
#include "ssh.h"
|
||||
#include "ssh/channel.h"
|
||||
|
@ -4,6 +4,7 @@
|
||||
*/
|
||||
|
||||
#include "putty.h"
|
||||
#include "ssh.h"
|
||||
|
||||
void *x11_dehexify(ptrlen hexpl, int *outlen)
|
||||
{
|
||||
|
@ -4,6 +4,7 @@
|
||||
*/
|
||||
|
||||
#include "putty.h"
|
||||
#include "ssh.h"
|
||||
|
||||
int x11_identify_auth_proto(ptrlen protoname)
|
||||
{
|
||||
|
@ -6,6 +6,7 @@
|
||||
#include <stdio.h>
|
||||
|
||||
#include "putty.h"
|
||||
#include "ssh.h"
|
||||
|
||||
bool x11_parse_ip(const char *addr_string, unsigned long *ip)
|
||||
{
|
||||
|
@ -3,6 +3,8 @@
|
||||
* that don't update the jump list.
|
||||
*/
|
||||
|
||||
#include "putty.h"
|
||||
|
||||
void add_session_to_jumplist(const char * const sessionname) {}
|
||||
void remove_session_from_jumplist(const char * const sessionname) {}
|
||||
void clear_jumplist(void) {}
|
||||
|
@ -8,6 +8,7 @@
|
||||
#include <stdarg.h>
|
||||
|
||||
#include "putty.h"
|
||||
#include "ssh.h"
|
||||
#include "storage.h"
|
||||
#include "tree234.h"
|
||||
#include "security-api.h"
|
||||
|
@ -4,6 +4,7 @@
|
||||
*/
|
||||
|
||||
#include "putty.h"
|
||||
#include "ssh.h"
|
||||
|
||||
#if !(defined _M_ARM || defined _M_ARM64)
|
||||
/*
|
||||
|
@ -11,6 +11,7 @@
|
||||
*/
|
||||
|
||||
#include "putty.h"
|
||||
#include "puttymem.h"
|
||||
|
||||
#define PAGESIZE 4096
|
||||
|
||||
|
@ -4,6 +4,7 @@
|
||||
*/
|
||||
|
||||
#include "putty.h"
|
||||
#include "ssh.h"
|
||||
|
||||
char *platform_get_x_display(void)
|
||||
{
|
||||
|
@ -14,6 +14,7 @@
|
||||
#define COMPILE_MULTIMON_STUBS
|
||||
|
||||
#include "putty.h"
|
||||
#include "ssh.h"
|
||||
#include "terminal.h"
|
||||
#include "storage.h"
|
||||
#include "putty-rc.h"
|
||||
|
Loading…
x
Reference in New Issue
Block a user