The R Project SVN R

Rev

Rev 42573 | Rev 45475 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 42573 Rev 42606
Line 184... Line 184...
184
    if (retval == -1)
184
    if (retval == -1)
185
	return Sock_error(perr, errno, 0);
185
	return Sock_error(perr, errno, 0);
186
 
186
 
187
    if (cname != NULL && buflen > 0) {
187
    if (cname != NULL && buflen > 0) {
188
	size_t nlen;
188
	size_t nlen;
189
	char *name;
189
	const char *name;
190
	struct in_addr *iaddr = &(net_client.sin_addr);
190
	struct in_addr *iaddr = &(net_client.sin_addr);
191
	hostptr = gethostbyaddr((char *)iaddr, sizeof(struct in_addr), 
191
	hostptr = gethostbyaddr((char *)iaddr, sizeof(struct in_addr), 
192
				AF_INET);
192
				AF_INET);
193
	name = (hostptr == NULL) ? "unknown" :  hostptr->h_name;
193
	name = (hostptr == NULL) ? "unknown" :  hostptr->h_name;
194
	nlen = strlen(name);
194
	nlen = strlen(name);