mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-06-30 19:12:48 -05:00
Consequences of Simon's recent deglobalisation changes.
[originally from svn r2573]
This commit is contained in:
10
mac/otnet.c
10
mac/otnet.c
@ -74,12 +74,14 @@ void ot_cleanup(void)
|
||||
CloseOpenTransport();
|
||||
}
|
||||
|
||||
SockAddr ot_namelookup(char *host, char **canonicalname)
|
||||
SockAddr ot_namelookup(char const *host, char **canonicalname)
|
||||
{
|
||||
SockAddr ret = smalloc(sizeof(struct SockAddr_tag));
|
||||
char *realhost;
|
||||
|
||||
ret->error = OTInetStringToAddress(ot.inetsvc, host, &ret->hostinfo);
|
||||
|
||||
/* Casting away const -- hope OTInetStringToAddress is sensible */
|
||||
ret->error = OTInetStringToAddress(ot.inetsvc, (char *)host,
|
||||
&ret->hostinfo);
|
||||
ret->resolved = TRUE;
|
||||
|
||||
if (ret->error == kOTNoError)
|
||||
@ -91,7 +93,7 @@ SockAddr ot_namelookup(char *host, char **canonicalname)
|
||||
return ret;
|
||||
}
|
||||
|
||||
SockAddr ot_nonamelookup(char *host)
|
||||
SockAddr ot_nonamelookup(char const *host)
|
||||
{
|
||||
SockAddr ret = smalloc(sizeof(struct SockAddr_tag));
|
||||
|
||||
|
Reference in New Issue
Block a user