mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-06-30 11:02:48 -05:00
proxy.c now no longer refers to `cfg'. Instead, each of the three
proxy-indirection network functions (name_lookup, new_connection, new_listener) takes a `const Config *' as an argument, and extracts enough information from it before returning to handle that particular network operation in accordance with the proxy settings it specifies. This involved {win,ux}net.c due to a `const' repercussion. [originally from svn r2567]
This commit is contained in:
@ -117,7 +117,7 @@ char *error_string(int error)
|
||||
return strerror(error);
|
||||
}
|
||||
|
||||
SockAddr sk_namelookup(char *host, char **canonicalname)
|
||||
SockAddr sk_namelookup(const char *host, char **canonicalname)
|
||||
{
|
||||
SockAddr ret = smalloc(sizeof(struct SockAddr_tag));
|
||||
unsigned long a;
|
||||
@ -200,7 +200,7 @@ SockAddr sk_namelookup(char *host, char **canonicalname)
|
||||
return ret;
|
||||
}
|
||||
|
||||
SockAddr sk_nonamelookup(char *host)
|
||||
SockAddr sk_nonamelookup(const char *host)
|
||||
{
|
||||
SockAddr ret = smalloc(sizeof(struct SockAddr_tag));
|
||||
ret->error = NULL;
|
||||
|
Reference in New Issue
Block a user