* send _that_ to the receiver function with `urgent' set.
*/
+#ifndef PUTTY_NETWORK_H
+#define PUTTY_NETWORK_H
+
typedef struct Socket_tag *Socket;
typedef struct SockAddr_tag *SockAddr;
typedef int (*sk_receiver_t)(Socket s, int urgent, char *data, int len);
*/
char *sk_addr_error(SockAddr addr);
char *sk_socket_error(Socket addr);
+
+#endif
#include <aclapi.h>
#endif
#include <stdio.h>
+#include <stdlib.h>
+#include <ctype.h>
#include "ssh.h"
#include "tree234.h"
#endif
#include <windows.h>
#include <stdio.h>
+#include <stdlib.h>
#include <stdarg.h>
#define PUTTY_DO_GLOBALS /* actually _define_ globals */
void fatalbox (char *p, ...) {
va_list ap;
- fprintf(stderr, "FATAL ERROR: ", p);
+ fprintf(stderr, "FATAL ERROR: ");
va_start(ap, p);
vfprintf(stderr, p, ap);
va_end(ap);
}
void connection_fatal (char *p, ...) {
va_list ap;
- fprintf(stderr, "FATAL ERROR: ", p);
+ fprintf(stderr, "FATAL ERROR: ");
va_start(ap, p);
vfprintf(stderr, p, ap);
va_end(ap);
#include <commctrl.h>
#include <time.h>
#include <stdio.h>
+#include <stdlib.h>
#define PUTTY_DO_GLOBALS
#include <windows.h>
#include <stdio.h>
+#include <stdlib.h>
#include "putty.h"
#include "storage.h"
unsigned char buf[16384];
unsigned char keybuf[16];
struct MD5Context md5c;
- char *p, *estart;
+ unsigned char *p, *estart;
FILE *fp;
/*
#include <stdio.h>
#include <stdlib.h>
+#include <ctype.h>
#include "putty.h"
#include <windows.h>
+#include <imm.h>
#include <commctrl.h>
#ifndef AUTO_WINSOCK
#ifdef WINSOCK_TWO
#include <windows.h>
#include <winsock.h>
#include <stdio.h>
+#include <stdlib.h>
#include "putty.h"
#include "network.h"
DWORD err;
char buf[BUFFER_GRANULE];
Socket s;
- int atmark;
+ u_long atmark;
/* wParam is the socket itself */
s = find234(sktree, (void *)wParam, cmpforsearch);
#include <windows.h>
#include <stdio.h>
+#include <stdlib.h>
#include "putty.h"
#include "storage.h"