X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=windows%2Fwinnet.c;h=fa2de80967565e91cd7161512fd2646f7d563bfc;hb=9f9d72ec58642e91b4f93ee4405a8086ee2fb2f0;hp=c7f68ef942b27908eb6d08482e5a3b7a6f9f5242;hpb=6539d39755e82e3a39f61aa0ff4e415b4861320b;p=PuTTY.git diff --git a/windows/winnet.c b/windows/winnet.c index c7f68ef9..fa2de809 100644 --- a/windows/winnet.c +++ b/windows/winnet.c @@ -138,7 +138,7 @@ static int cmpfortree(void *av, void *bv) static int cmpforsearch(void *av, void *bv) { Actual_Socket b = (Actual_Socket) bv; - unsigned long as = (unsigned long) av, bs = (unsigned long) b->s; + uintptr_t as = (uintptr_t) av, bs = (uintptr_t) b->s; if (as < bs) return -1; if (as > bs) @@ -1658,7 +1658,7 @@ int select_result(WPARAM wParam, LPARAM lParam) ret = p_recv(s->s, buf, sizeof(buf), MSG_OOB); noise_ultralight(ret); if (ret <= 0) { - char *str = (ret == 0 ? "Internal networking trouble" : + const char *str = (ret == 0 ? "Internal networking trouble" : winsock_error_string(p_WSAGetLastError())); /* We're inside the Windows frontend here, so we know * that the frontend handle is unnecessary. */