X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=unix%2Fuxnet.c;h=46959e2f7824fa9704b7d549808849b119831277;hb=6eec320f0b3606f17f06a290acdbb8f84afdff00;hp=7b970416cd8f99bcd84bcf03f1098454e8613285;hpb=ee56a6b48f970b1ebf0e46f541efc87cd822cb07;p=PuTTY.git diff --git a/unix/uxnet.c b/unix/uxnet.c index 7b970416..46959e2f 100644 --- a/unix/uxnet.c +++ b/unix/uxnet.c @@ -744,9 +744,8 @@ Socket sk_newlistener(char *srcaddr, int port, Plug plug, int local_host_only, i if (a.sin_addr.s_addr != (in_addr_t)(-1)) { /* Override localhost_only with specified listen addr. */ ret->localhost_only = ipv4_is_loopback(a.sin_addr); - got_addr = 1; } - addr = (struct sockaddr *)a; + addr = (struct sockaddr *)&a; addrlen = sizeof(a); retcode = 0; #endif @@ -812,16 +811,6 @@ static void sk_tcp_close(Socket sock) sfree(s); } -#define PUT_32BIT_MSB_FIRST(cp, value) ( \ - (cp)[0] = (char)((value) >> 24), \ - (cp)[1] = (char)((value) >> 16), \ - (cp)[2] = (char)((value) >> 8), \ - (cp)[3] = (char)(value) ) - -#define PUT_16BIT_MSB_FIRST(cp, value) ( \ - (cp)[0] = (char)((value) >> 8), \ - (cp)[1] = (char)(value) ) - void *sk_getxdmdata(void *sock, int *lenp) { Actual_Socket s = (Actual_Socket) sock;