#include <windows.h>
#include <winsock.h>
#include <stdio.h>
+#include <stdlib.h>
#include "putty.h"
#include "network.h"
unsigned long a;
struct hostent *h;
+ ret->error = NULL;
if ( (a = inet_addr(host)) == (unsigned long) INADDR_NONE) {
if ( (h = gethostbyname(host)) == NULL) {
DWORD err = WSAGetLastError();
err == WSATRY_AGAIN ? "Host not found" :
"gethostbyname: unknown error");
} else {
- ret->error = NULL;
memcpy (&a, h->h_addr, sizeof(a));
*canonicalname = h->h_name;
}
DWORD err;
char buf[BUFFER_GRANULE];
Socket s;
- int atmark;
+ u_long atmark;
/* wParam is the socket itself */
s = find234(sktree, (void *)wParam, cmpforsearch);