1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-03-22 14:39:24 -05:00

Fix/bludgeon Mac compile wrinkles.

[originally from svn r5154]
This commit is contained in:
Owen Dunn 2005-01-20 16:42:25 +00:00
parent 37278b3bfc
commit eb4bb72cc6
2 changed files with 2 additions and 2 deletions

View File

@ -131,7 +131,7 @@ int proxy_socks5_handlechap (Proxy_Socket p)
outbuf[3] = 0x10; /* Length */ outbuf[3] = 0x10; /* Length */
hmacmd5_chap(data, p->chap_current_datalen, hmacmd5_chap(data, p->chap_current_datalen,
p->cfg.proxy_password, &outbuf[4]); p->cfg.proxy_password, &outbuf[4]);
sk_write(p->sub_socket, outbuf, 20); sk_write(p->sub_socket, (char *)outbuf, 20);
break; break;
case 0x11: case 0x11:
/* Chose a protocol */ /* Chose a protocol */

View File

@ -241,7 +241,7 @@ char *x11_display(const char *display) {
char *ret; char *ret;
if(!display || !*display) { if(!display || !*display) {
/* try to find platform-specific local display */ /* try to find platform-specific local display */
if(!(ret = platform_get_x_display())) if((ret = platform_get_x_display())==0)
/* plausible default for all platforms */ /* plausible default for all platforms */
ret = dupstr(":0"); ret = dupstr(":0");
} else } else