[originally from svn r5154]
outbuf[3] = 0x10; /* Length */
hmacmd5_chap(data, p->chap_current_datalen,
p->cfg.proxy_password, &outbuf[4]);
- sk_write(p->sub_socket, outbuf, 20);
+ sk_write(p->sub_socket, (char *)outbuf, 20);
break;
case 0x11:
/* Chose a protocol */
char *ret;
if(!display || !*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 */
ret = dupstr(":0");
} else