mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-04-10 07:38:06 -05:00
Fix misdef of platform_get_x11_unix_address on Windows.
Similarly to the previous commit, this function had an inconsistent parameter list between Unix and Windows, because the Windows source file that defines it (winnet.c) didn't include ssh.h where its prototype lives, so the compiler never checked. Luckily, the discrepancy was that the Windows version of the function was declared as taking an extra parameter which it ignored, so the fix is very easy. (cherry picked from commit b7f011aed74a6f0442571da4f15c794c7adff99c)
This commit is contained in:
parent
964058b5ef
commit
8c227b0cc0
@ -1817,8 +1817,7 @@ char *get_hostname(void)
|
||||
return dupstr(hostbuf);
|
||||
}
|
||||
|
||||
SockAddr *platform_get_x11_unix_address(const char *display, int displaynum,
|
||||
char **canonicalname)
|
||||
SockAddr *platform_get_x11_unix_address(const char *display, int displaynum)
|
||||
{
|
||||
SockAddr *ret = snew(SockAddr);
|
||||
memset(ret, 0, sizeof(SockAddr));
|
||||
|
Loading…
x
Reference in New Issue
Block a user