X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=windows%2Fwinnet.c;h=5e05cfc29978366f44918b9b7518c8e4b65ef3a0;hb=89da2ddf564a93414ee9ab2df3f053608094e417;hp=039701cf0bd9b9aab05d0e0f89c9f7af3622f6e2;hpb=fb4fbe11588d3e53be99909f57dd179d1105aaf5;p=PuTTY.git diff --git a/windows/winnet.c b/windows/winnet.c index 039701cf..5e05cfc2 100644 --- a/windows/winnet.c +++ b/windows/winnet.c @@ -50,7 +50,7 @@ struct SockAddrStep_tag { struct Socket_tag { const struct socket_function_table *fn; /* the above variable absolutely *must* be the first in this structure */ - char *error; + const char *error; SOCKET s; Plug plug; bufchain output_data; @@ -356,7 +356,7 @@ static int errstring_compare(void *av, void *bv) static tree234 *errstrings = NULL; -char *winsock_error_string(int error) +const char *winsock_error_string(int error) { const char prefix[] = "Network error: "; struct errstring *es; @@ -1162,8 +1162,8 @@ Socket sk_new(SockAddr addr, int port, int privport, int oobinline, return (Socket) ret; } -Socket sk_newlistener(char *srcaddr, int port, Plug plug, int local_host_only, - int orig_address_family) +Socket sk_newlistener(const char *srcaddr, int port, Plug plug, + int local_host_only, int orig_address_family) { static const struct socket_function_table fn_table = { sk_tcp_plug,